RCS file: /cvsroot/filezilla/FileZilla/source/SiteManager.cpp,v
retrieving revision 1.63
diff -u -r1.63 SiteManager.cpp
|
|
|
42 | 42 | CMenuTree *mt = ( CMenuTree *)lpData; |
43 | 43 | |
44 | 44 | AppendMenu( ( HMENU)lpParent, MF_STRING, mt->m_CurrentItem, lpszName); |
45 | | |
| 45 | |
46 | 46 | if (!site) |
47 | 47 | EnableMenuItem( (HMENU)lpParent, mt->m_CurrentItem, MF_BYCOMMAND|MF_DISABLED|MF_GRAYED); |
48 | 48 | |
… |
… |
|
104 | 104 | } |
105 | 105 | |
106 | 106 | ///////////////////////////////////////////////////////////////////////////// |
107 | | // Dialogfeld CSiteManager |
| 107 | // Dialogfeld CSiteManager |
108 | 108 | |
109 | 109 | |
110 | 110 | CSiteManager::CSiteManager(CWnd* pParent /*=NULL*/) |
… |
… |
|
190 | 190 | END_MESSAGE_MAP() |
191 | 191 | |
192 | 192 | ///////////////////////////////////////////////////////////////////////////// |
193 | | // Behandlungsroutinen für Nachrichten CSiteManager |
| 193 | // Behandlungsroutinen für Nachrichten CSiteManager |
194 | 194 | |
195 | 195 | bool CSiteManager::ConnectSitePrepare(t_SiteManagerItem *site) |
196 | 196 | { |
… |
… |
|
237 | 237 | return false; |
238 | 238 | } |
239 | 239 | |
240 | | void CSiteManager::OnOK() |
| 240 | void CSiteManager::OnOK() |
241 | 241 | { |
242 | 242 | HTREEITEM item=m_cTree.GetSelectedItem(); |
243 | 243 | t_SiteManagerItem *site=0; |
… |
… |
|
245 | 245 | site=(t_SiteManagerItem *)m_cTree.GetItemData(item); |
246 | 246 | if (!site || site->NodeType != SITE) |
247 | 247 | return; |
248 | | |
249 | | if (CheckValid()) |
250 | | { //If an item is selected and the current selection is valid, |
| 248 | |
| 249 | if (CheckValid()) |
| 250 | { //If an item is selected and the current selection is valid, |
251 | 251 | //we can save the data and close the dialog |
252 | 252 | //And don't forget to ask for the password first! |
253 | 253 | t_SiteManagerItem site2 = *(t_SiteManagerItem *)m_cTree.GetItemData(item); |
… |
… |
|
275 | 275 | GssServers=GssServers.Mid(i+1); |
276 | 276 | } |
277 | 277 | } |
278 | | |
| 278 | |
279 | 279 | if (!bUseGSS) |
280 | 280 | { |
281 | 281 | if (m_Logontype && (m_bPassDontSave || _ttoi(COptions::GetOption(OPTION_RUNINSECUREMODE))) ) |
… |
… |
|
286 | 286 | site2.Pass = dlg.m_String; |
287 | 287 | } |
288 | 288 | } |
289 | | |
| 289 | |
290 | 290 | SaveData(); |
291 | 291 | OnClose(); |
292 | 292 | m_LastSite = site2; |
… |
… |
|
302 | 302 | { |
303 | 303 | unsigned char *buffer=new unsigned char[100]; |
304 | 304 | memset(buffer,0,100); |
305 | | |
| 305 | |
306 | 306 | unsigned long tmp=100; |
307 | | if (RegQueryValueEx(key,keyname,NULL,NULL,buffer,&tmp)!=ERROR_SUCCESS) |
| 307 | if (RegQueryValueEx(key,keyname,NULL,NULL,buffer,&tmp)!=ERROR_SUCCESS) |
308 | 308 | { |
309 | 309 | RegCloseKey(key); |
310 | 310 | delete [] buffer; |
311 | 311 | return ""; |
312 | 312 | } |
313 | | else |
| 313 | else |
314 | 314 | { |
315 | 315 | RegCloseKey(key); |
316 | 316 | CString res=(LPTSTR)buffer; |
… |
… |
|
328 | 328 | LPCTSTR str=value; |
329 | 329 | _tcscpy(tmp,str); |
330 | 330 | HKEY key; |
331 | | if (RegCreateKeyEx(HKEY_CURRENT_USER, "Software\\FileZilla\\Site Manager\\" + subkey, 0, 0, REG_OPTION_NON_VOLATILE, KEY_WRITE, 0, &key, NULL)==ERROR_SUCCESS) |
| 331 | if (RegCreateKeyEx(HKEY_CURRENT_USER, "Software\\FileZilla\\Site Manager\\" + subkey, 0, 0, REG_OPTION_NON_VOLATILE, KEY_WRITE, 0, &key, NULL)==ERROR_SUCCESS) |
332 | 332 | { |
333 | 333 | RegSetValueEx(key,keyname,0,REG_SZ,(unsigned char *)tmp,(value.GetLength()+1)*sizeof(TCHAR)); |
334 | 334 | RegCloseKey(key); |
… |
… |
|
336 | 336 | delete [] tmp; |
337 | 337 | } |
338 | 338 | |
339 | | BOOL CSiteManager::OnInitDialog() |
| 339 | BOOL CSiteManager::OnInitDialog() |
340 | 340 | { |
341 | 341 | CDialog::OnInitDialog(); |
342 | | |
| 342 | |
343 | 343 | SetCtrlState(); |
344 | 344 | m_DefaultSite=0; |
345 | 345 | if (!m_ImageList.GetSafeHandle()) |
… |
… |
|
387 | 387 | } |
388 | 388 | |
389 | 389 | m_cTree.Expand(item, TVE_EXPAND); |
390 | | |
| 390 | |
391 | 391 | if (!m_DefaultSite) |
392 | 392 | m_DefaultSite=item; |
393 | 393 | m_cTree.SelectItem(m_DefaultSite); |
… |
… |
|
395 | 395 | if (m_DefaultSite) |
396 | 396 | site=(t_SiteManagerItem *)m_cTree.GetItemData(m_DefaultSite); |
397 | 397 | DisplaySite(site); |
398 | | |
| 398 | |
399 | 399 | if (m_bAddServer) |
400 | 400 | { |
401 | 401 | CString str; |
402 | | |
| 402 | |
403 | 403 | str.Format(IDS_SITEMANAGER_NEWFTPSITE); |
404 | 404 | int i=2; |
405 | 405 | HTREEITEM parent=m_cTree.GetRootItem(); |
… |
… |
|
421 | 421 | |
422 | 422 | } |
423 | 423 | HTREEITEM item=m_cTree.InsertItem(str,2,2,parent,TVI_SORT); |
424 | | |
| 424 | |
425 | 425 | t_SiteManagerItem *site = new t_SiteManagerItem; |
426 | 426 | site->name = str; |
427 | 427 | site->Host = m_addserver.host; |
… |
… |
|
449 | 449 | } |
450 | 450 | else |
451 | 451 | ASSERT(FALSE); |
452 | | site->RemoteDir = m_addserver.path; |
| 452 | site->RemoteDir = m_addserver.path; |
453 | 453 | site->bFirewallBypass = m_addserver.fwbypass; |
454 | 454 | site->nTimeZoneOffset = m_addserver.nTimeZoneOffset / 60; |
455 | 455 | site->nTimeZoneOffset2 = m_addserver.nTimeZoneOffset % 60; |
… |
… |
|
460 | 460 | DisplaySite(site); |
461 | 461 | m_cTree.SetFocus(); |
462 | 462 | m_cTree.EditLabel(item); |
463 | | |
| 463 | |
464 | 464 | m_bAddServer = FALSE; |
465 | 465 | } |
466 | | |
| 466 | |
467 | 467 | m_hcArrow = AfxGetApp()->LoadStandardCursor(IDC_ARROW); |
468 | 468 | m_hcNo = AfxGetApp()->LoadStandardCursor(IDC_NO); |
469 | 469 | |
470 | 470 | if (m_FileToImport!="") |
471 | 471 | Import(m_FileToImport); |
472 | | |
| 472 | |
473 | 473 | return TRUE; // return TRUE unless you set the focus to a control |
474 | 474 | // EXCEPTION: OCX-Eigenschaftenseiten sollten FALSE zurückgeben |
475 | 475 | } |
476 | 476 | |
477 | | void CSiteManager::OnNew() |
| 477 | void CSiteManager::OnNew() |
478 | 478 | { |
479 | 479 | if (!CheckValid()) |
480 | 480 | return; |
… |
… |
|
484 | 484 | ASSERT(m_cTree.GetItemData(parent)); |
485 | 485 | if (((t_SiteManagerItem *)m_cTree.GetItemData(parent))->NodeType==SITE) |
486 | 486 | parent=m_cTree.GetParentItem(parent); |
487 | | |
| 487 | |
488 | 488 | ASSERT(m_cTree.GetItemData(parent) && ((t_SiteManagerItem *)m_cTree.GetItemData(parent))->NodeType==FOLDER); |
489 | | |
| 489 | |
490 | 490 | CString name; |
491 | 491 | name.Format(IDS_SITEMANAGER_NEWFTPSITE); |
492 | 492 | |
… |
… |
|
498 | 498 | name2.MakeLower(); |
499 | 499 | CString childstr=m_cTree.GetItemText(child); |
500 | 500 | childstr.MakeLower(); |
501 | | if (childstr==name2) |
| 501 | if (childstr==name2) |
502 | 502 | { |
503 | 503 | child=m_cTree.GetChildItem(parent); |
504 | 504 | name.Format(IDS_SITEMANAGER_NEWFTPSITEWITHNUM,i); |
… |
… |
|
507 | 507 | } |
508 | 508 | child=m_cTree.GetNextItem(child,TVGN_NEXT); |
509 | 509 | } |
510 | | |
| 510 | |
511 | 511 | HTREEITEM item=m_cTree.InsertItem(name,2,2,parent,TVI_SORT); |
512 | 512 | m_cTree.Expand(parent, TVE_EXPAND); |
513 | 513 | t_SiteManagerItem *site=new t_SiteManagerItem; |
… |
… |
|
532 | 532 | |
533 | 533 | m_cTree.SelectItem(item); |
534 | 534 | DisplaySite(site); |
535 | | m_cTree.EditLabel(item); |
| 535 | m_cTree.EditLabel(item); |
536 | 536 | } |
537 | 537 | |
538 | 538 | /* |
… |
… |
|
558 | 558 | { |
559 | 559 | CString str; |
560 | 560 | CString str2; |
561 | | |
| 561 | |
562 | 562 | if (m_Host=="") |
563 | 563 | { |
564 | 564 | m_cTree.SelectItem(olditem); |
… |
… |
|
598 | 598 | m_UserCtrl.SetFocus(); |
599 | 599 | return FALSE; |
600 | 600 | } |
601 | | |
| 601 | |
602 | 602 | /* if (m_Pass=="") |
603 | 603 | { |
604 | 604 | m_cTree.SelectItem(olditem); |
… |
… |
|
610 | 610 | if (m_cServerType.GetCurSel()==CB_ERR) |
611 | 611 | m_cServerType.SetCurSel(0); |
612 | 612 | UpdateData(FALSE); |
613 | | |
| 613 | |
614 | 614 | t_SiteManagerItem *site=(t_SiteManagerItem*)m_cTree.GetItemData(olditem); |
615 | 615 | ASSERT(site); |
616 | 616 | site->Host=m_Host; |
… |
… |
|
623 | 623 | } |
624 | 624 | site->bFirewallBypass=m_bFwBypass; |
625 | 625 | site->bPassDontSave=m_bPassDontSave; |
626 | | if (m_bPassDontSave) |
| 626 | if (m_bPassDontSave) |
627 | 627 | site->Pass=""; //Ensure that the pass doesn't get saved |
628 | 628 | site->nServerType=m_cServerType.GetCurSel(); |
629 | 629 | CWnd *pComments = GetDlgItem(IDC_SITEMANAGER_COMMENTS); |
… |
… |
|
631 | 631 | pComments->GetWindowText(site->Comments); |
632 | 632 | |
633 | 633 | if (!m_nDefault) |
634 | | m_DefaultSite=olditem; |
| 634 | m_DefaultSite=olditem; |
635 | 635 | } |
636 | | return TRUE; |
| 636 | return TRUE; |
637 | 637 | } |
638 | 638 | |
639 | 639 | t_SiteManagerItem *CSiteManager::GetData(HKEY hRootKey, CString Name) |
… |
… |
|
726 | 726 | m_ConnectCtrl.EnableWindow(TRUE); |
727 | 727 | m_FwBypassCtrl.EnableWindow(TRUE); |
728 | 728 | m_UserCtrl.SetReadOnly(m_Logontype?FALSE:TRUE); |
729 | | m_PassCtrl.SetReadOnly(m_Logontype?FALSE:TRUE); |
730 | | m_PassCtrl.EnableWindow((!m_bPassDontSave || !m_Logontype) && !_ttoi(COptions::GetOption(OPTION_RUNINSECUREMODE))); |
| 729 | m_PassCtrl.SetReadOnly(m_Logontype?FALSE:TRUE); |
| 730 | m_PassCtrl.EnableWindow((!m_bPassDontSave || !m_Logontype) && !_ttoi(COptions::GetOption(OPTION_RUNINSECUREMODE))); |
731 | 731 | m_cDefault.EnableWindow(TRUE); |
732 | 732 | m_cPassDontSave.EnableWindow((m_Logontype && !_ttoi(COptions::GetOption(OPTION_RUNINSECUREMODE)))?TRUE:FALSE); |
733 | 733 | m_cServerType.EnableWindow(TRUE); |
… |
… |
|
747 | 747 | { |
748 | 748 | m_DeleteCtrl.EnableWindow(FALSE); |
749 | 749 | GetDlgItem(IDC_SITEMANAGER_RENAME)->EnableWindow(FALSE); |
750 | | |
| 750 | |
751 | 751 | } |
752 | 752 | m_HostCtrl.EnableWindow(FALSE); |
753 | 753 | m_PortCtrl.EnableWindow(FALSE); |
… |
… |
|
767 | 767 | } |
768 | 768 | } |
769 | 769 | |
770 | | void CSiteManager::OnDelete() |
| 770 | void CSiteManager::OnDelete() |
771 | 771 | { |
772 | 772 | HTREEITEM item=m_cTree.GetSelectedItem(); |
773 | 773 | if (!item) |
… |
… |
|
783 | 783 | } |
784 | 784 | path.TrimRight( _T("\\") ); |
785 | 785 | m_KeysToDelete.push_back(path); |
786 | | |
| 786 | |
787 | 787 | item=m_cTree.GetSelectedItem(); |
788 | 788 | while(item!=parent) |
789 | 789 | { |
… |
… |
|
799 | 799 | if (m_DefaultSite==item) |
800 | 800 | m_DefaultSite=m_cTree.GetRootItem(); |
801 | 801 | m_cTree.DeleteItem(item); |
802 | | item=parent; |
| 802 | item=parent; |
803 | 803 | } |
804 | 804 | m_cTree.SelectItem(parent); |
805 | 805 | } |
… |
… |
|
858 | 858 | pMarkup->AddChildElem( _T("Sites") ); |
859 | 859 | |
860 | 860 | pMarkup->IntoElem(); |
861 | | |
| 861 | |
862 | 862 | //Only delete the old items that have been renamed or removed |
863 | 863 | //Don't delete complete sitemanager key so that crashes while saving would not be fatal |
864 | 864 | pMarkup->SavePos( _T("PREDELETE") ); |
… |
… |
|
872 | 872 | current+="\\"+pMarkup->GetChildAttrib( _T("Name") ); |
873 | 873 | else |
874 | 874 | current=pMarkup->GetChildAttrib( _T("Name") ); |
875 | | |
| 875 | |
876 | 876 | if (m_KeysToDelete.empty()) |
877 | 877 | break; |
878 | | |
| 878 | |
879 | 879 | std::list<CString>::iterator iter; |
880 | 880 | for (iter=m_KeysToDelete.begin(); iter!=m_KeysToDelete.end(); iter++) |
881 | 881 | if (*iter==current) |
… |
… |
|
886 | 886 | } |
887 | 887 | if (m_KeysToDelete.empty()) |
888 | 888 | break; |
889 | | |
| 889 | |
890 | 890 | if (iter==m_KeysToDelete.end()) |
891 | 891 | pMarkup->IntoElem(); |
892 | 892 | else |
… |
… |
|
897 | 897 | else |
898 | 898 | current=current.Left(pos); |
899 | 899 | } |
900 | | |
| 900 | |
901 | 901 | res=pMarkup->FindChildElem(); |
902 | 902 | while (!res && current!="") |
903 | 903 | { |
… |
… |
|
926 | 926 | } |
927 | 927 | if (m_KeysToDelete.empty()) |
928 | 928 | break; |
929 | | |
| 929 | |
930 | 930 | res=pMarkup->FindChildElem(); |
931 | 931 | while (!res && current!="") |
932 | 932 | { |
… |
… |
|
939 | 939 | res=pMarkup->FindChildElem(); |
940 | 940 | } |
941 | 941 | } |
942 | | |
| 942 | |
943 | 943 | } |
944 | 944 | VERIFY(pMarkup->RestorePos( _T("PREDELETE") )); |
945 | 945 | |
… |
… |
|
986 | 986 | } |
987 | 987 | |
988 | 988 | pMarkup->IntoElem(); |
989 | | |
| 989 | |
990 | 990 | if (path!="") |
991 | 991 | path+="/"+m_cTree.GetItemText(item); |
992 | 992 | else |
993 | 993 | path=m_cTree.GetItemText(item); |
994 | 994 | continue; |
995 | 995 | } |
996 | | |
| 996 | |
997 | 997 | HTREEITEM parent=m_cTree.GetParentItem(item); |
998 | 998 | pSite = reinterpret_cast<t_SiteManagerItem *>(m_cTree.GetItemData(item)); |
999 | 999 | if (pSite) |
… |
… |
|
1010 | 1010 | } |
1011 | 1011 | } |
1012 | 1012 | |
1013 | | void CSiteManager::OnCancel() |
| 1013 | void CSiteManager::OnCancel() |
1014 | 1014 | { |
1015 | 1015 | m_cTree.SetRedraw(FALSE); |
1016 | 1016 | HTREEITEM item=m_cTree.GetChildItem(TVI_ROOT); |
… |
… |
|
1026 | 1026 | delete site; |
1027 | 1027 | HTREEITEM parent=m_cTree.GetParentItem(item); |
1028 | 1028 | m_cTree.DeleteItem(item); |
1029 | | item=parent; |
| 1029 | item=parent; |
1030 | 1030 | } |
1031 | 1031 | m_cTree.SetRedraw(TRUE); |
1032 | 1032 | CDialog::OnCancel(); |
1033 | 1033 | } |
1034 | 1034 | |
1035 | | void CSiteManager::OnRadio() |
| 1035 | void CSiteManager::OnRadio() |
1036 | 1036 | { |
1037 | 1037 | UpdateData(TRUE); |
1038 | 1038 | if (!m_Logontype) |
… |
… |
|
1056 | 1056 | SetCtrlState(); |
1057 | 1057 | } |
1058 | 1058 | |
1059 | | void CSiteManager::OnExit() |
| 1059 | void CSiteManager::OnExit() |
1060 | 1060 | { |
1061 | 1061 | m_cTree.SetRedraw(FALSE); |
1062 | 1062 | if (CheckValid()) |
… |
… |
|
1068 | 1068 | m_cTree.SetRedraw(TRUE); |
1069 | 1069 | } |
1070 | 1070 | |
1071 | | void CSiteManager::OnKillfocusHost() |
| 1071 | void CSiteManager::OnKillfocusHost() |
1072 | 1072 | { |
1073 | 1073 | UpdateData(TRUE); |
1074 | 1074 | t_SiteManagerItem *data=(t_SiteManagerItem *)m_cTree.GetItemData(m_cTree.GetSelectedItem()); |
… |
… |
|
1131 | 1131 | { |
1132 | 1132 | return; |
1133 | 1133 | } |
1134 | | |
1135 | | |
| 1134 | |
| 1135 | |
1136 | 1136 | } |
1137 | 1137 | pos=m_Host.ReverseFind('@'); |
1138 | 1138 | if (pos!=-1) |
… |
… |
|
1145 | 1145 | } |
1146 | 1146 | m_Host=m_Host.Right(m_Host.GetLength()-pos-1); |
1147 | 1147 | m_User=tmp.Left(pos2); |
1148 | | m_Pass=tmp.Right(tmp.GetLength()-pos2-1); |
| 1148 | m_Pass=tmp.Right(tmp.GetLength()-pos2-1); |
1149 | 1149 | m_Logontype=1; |
1150 | 1150 | SetCtrlState(); |
1151 | 1151 | } |
… |
… |
|
1159 | 1159 | UpdateData(FALSE); |
1160 | 1160 | } |
1161 | 1161 | |
1162 | | void CSiteManager::OnSitemanagerSaveexit() |
| 1162 | void CSiteManager::OnSitemanagerSaveexit() |
1163 | 1163 | { |
1164 | | OnExit(); |
| 1164 | OnExit(); |
1165 | 1165 | } |
1166 | 1166 | |
1167 | 1167 | BOOL ReadString(CArchive &ar,CString &str) |
… |
… |
|
1176 | 1176 | return TRUE; |
1177 | 1177 | } |
1178 | 1178 | |
1179 | | void CSiteManager::OnSitemanagerFileImport() |
| 1179 | void CSiteManager::OnSitemanagerFileImport() |
1180 | 1180 | { |
1181 | 1181 | if (!CheckValid()) |
1182 | | return; |
| 1182 | return; |
1183 | 1183 | CString str; |
1184 | 1184 | str.LoadString(IDS_SITEMANAGER_XMLFILES); |
1185 | 1185 | CFileDialog dlg(TRUE, _T("xml"), _T("FTP Sites"), OFN_FILEMUSTEXIST, str); |
… |
… |
|
1189 | 1189 | } |
1190 | 1190 | } |
1191 | 1191 | |
1192 | | void CSiteManager::OnSitemanagerFileExportAsurllist() |
| 1192 | void CSiteManager::OnSitemanagerFileExportAsurllist() |
1193 | 1193 | { |
1194 | 1194 | if (!CheckValid()) |
1195 | 1195 | return; |
1196 | 1196 | |
1197 | 1197 | USES_CONVERSION; |
1198 | | |
| 1198 | |
1199 | 1199 | CString str; |
1200 | 1200 | str.LoadString(IDS_SITEMANAGER_TEXTFILES); |
1201 | 1201 | CFileDialog dlg(FALSE, _T("txt"), _T("FTP Sites"), OFN_OVERWRITEPROMPT, str); |
… |
… |
|
1245 | 1245 | } |
1246 | 1246 | } |
1247 | 1247 | |
1248 | | void CSiteManager::OnSitemanagerFileExportWithalldetails() |
| 1248 | void CSiteManager::OnSitemanagerFileExportWithalldetails() |
1249 | 1249 | { |
1250 | 1250 | USES_CONVERSION; |
1251 | | |
| 1251 | |
1252 | 1252 | if (!CheckValid()) |
1253 | | return; |
| 1253 | return; |
1254 | 1254 | CString str; |
1255 | 1255 | str.LoadString(IDS_SITEMANAGER_XMLFILES); |
1256 | 1256 | CFileDialog dlg(FALSE, _T("xml"), _T("FTP Sites"), OFN_OVERWRITEPROMPT, str); |
… |
… |
|
1285 | 1285 | else |
1286 | 1286 | { |
1287 | 1287 | markup.AddChildElem( _T("Folder") ); |
1288 | | markup.AddChildAttrib( _T("Name"), m_cTree.GetItemText(item)); |
| 1288 | markup.AddChildAttrib( _T("Name"), m_cTree.GetItemText(item)); |
1289 | 1289 | } |
1290 | 1290 | |
1291 | 1291 | HTREEITEM item2=m_cTree.GetNextSiblingItem(item); |
… |
… |
|
1347 | 1347 | if (str=="") |
1348 | 1348 | continue; |
1349 | 1349 | int pos; |
1350 | | |
| 1350 | |
1351 | 1351 | if ((pos=str.Find( _T(": ") ))!=-1) |
1352 | 1352 | { //Server list with details |
1353 | 1353 | t_SiteManagerItem *pSite = new t_SiteManagerItem; |
… |
… |
|
1355 | 1355 | pSite->nPort = 21; |
1356 | 1356 | pSite->nLogonType = -1; |
1357 | 1357 | CString folder; |
1358 | | |
| 1358 | |
1359 | 1359 | do |
1360 | 1360 | { |
1361 | 1361 | if (str=="") |
… |
… |
|
1477 | 1477 | name2.MakeLower(); |
1478 | 1478 | CString childstr=m_cTree.GetItemText(child); |
1479 | 1479 | childstr.MakeLower(); |
1480 | | if (childstr==name2) |
| 1480 | if (childstr==name2) |
1481 | 1481 | { |
1482 | 1482 | child=m_cTree.GetChildItem(hParent); |
1483 | 1483 | newname.Format(_T("%s (%d)"), pSite->name, i); |
… |
… |
|
1499 | 1499 | pSite->nPort=0; |
1500 | 1500 | pSite->bFirewallBypass=0; |
1501 | 1501 | pSite->bPassDontSave=0; |
1502 | | |
| 1502 | |
1503 | 1503 | pos=str.Find('/'); |
1504 | 1504 | if (pos!=-1) |
1505 | 1505 | { |
… |
… |
|
1532 | 1532 | { |
1533 | 1533 | pSite->nPort=_ttoi(str.Mid(pos+1)); |
1534 | 1534 | str=str.Left(pos); |
1535 | | |
| 1535 | |
1536 | 1536 | } |
1537 | 1537 | |
1538 | 1538 | if (!pSite->nPort) |
… |
… |
|
1555 | 1555 | name2.MakeLower(); |
1556 | 1556 | CString childstr=m_cTree.GetItemText(child); |
1557 | 1557 | childstr.MakeLower(); |
1558 | | if (childstr==name2) |
| 1558 | if (childstr==name2) |
1559 | 1559 | { |
1560 | 1560 | child=m_cTree.GetChildItem(hParent); |
1561 | 1561 | newname.Format(_T("%s (%d)"), pSite->name, i); |
… |
… |
|
1594 | 1594 | name2.MakeLower(); |
1595 | 1595 | CString childstr=m_cTree.GetItemText(child); |
1596 | 1596 | childstr.MakeLower(); |
1597 | | if (childstr==name2) |
| 1597 | if (childstr==name2) |
1598 | 1598 | break; |
1599 | 1599 | child=m_cTree.GetNextSiblingItem(child); |
1600 | 1600 | } |
… |
… |
|
1631 | 1631 | name2.MakeLower(); |
1632 | 1632 | CString childstr=m_cTree.GetItemText(child); |
1633 | 1633 | childstr.MakeLower(); |
1634 | | if (childstr==name2) |
| 1634 | if (childstr==name2) |
1635 | 1635 | { |
1636 | 1636 | child=m_cTree.GetChildItem(parent); |
1637 | 1637 | newname.Format(_T("%s (%d)"), name, i); |
… |
… |
|
1666 | 1666 | return DoModal(); |
1667 | 1667 | } |
1668 | 1668 | |
1669 | | void CSiteManager::OnClose() |
| 1669 | void CSiteManager::OnClose() |
1670 | 1670 | { |
1671 | 1671 | HTREEITEM item=m_cTree.GetChildItem(TVI_ROOT); |
1672 | 1672 | while(item) |
… |
… |
|
1681 | 1681 | delete site; |
1682 | 1682 | HTREEITEM parent=m_cTree.GetParentItem(item); |
1683 | 1683 | m_cTree.DeleteItem(item); |
1684 | | item=parent; |
| 1684 | item=parent; |
1685 | 1685 | } |
1686 | 1686 | CDialog::OnClose(); |
1687 | 1687 | } |
… |
… |
|
1741 | 1741 | pMarkup->AddChildAttrib( _T("UTF8"), site->nUTF8); |
1742 | 1742 | } |
1743 | 1743 | |
1744 | | void CSiteManager::OnPassdontsave() |
| 1744 | void CSiteManager::OnPassdontsave() |
1745 | 1745 | { |
1746 | 1746 | UpdateData(TRUE); |
1747 | | m_PassCtrl.EnableWindow(!m_bPassDontSave); |
| 1747 | m_PassCtrl.EnableWindow(!m_bPassDontSave); |
1748 | 1748 | m_Pass=""; |
1749 | 1749 | UpdateData(FALSE); |
1750 | 1750 | } |
… |
… |
|
1758 | 1758 | // Registry key are children. |
1759 | 1759 | // |
1760 | 1760 | void CSiteManager::ReadTree(CString substring, const LPVOID &parent, LPVOID lpData, LPVOID lpDefault, |
1761 | | BUILDSITETREEPROC_NEW_ITEM NewItemProc, BUILDSITETREEPROC_NEW_FOLDER NewFolderProc, |
| 1761 | BUILDSITETREEPROC_NEW_ITEM NewItemProc, BUILDSITETREEPROC_NEW_FOLDER NewFolderProc, |
1762 | 1762 | BUILDSITETREEPROC_AFTER AfterProc) |
1763 | 1763 | { |
1764 | 1764 | substring.TrimLeft( _T("\\") ); |
… |
… |
|
1771 | 1771 | return; |
1772 | 1772 | hRootKey = HKEY_LOCAL_MACHINE; |
1773 | 1773 | } |
1774 | | |
| 1774 | |
1775 | 1775 | TCHAR buffer[1000]; |
1776 | 1776 | int index=0; |
1777 | 1777 | unsigned char value[1000]; |
… |
… |
|
1864 | 1864 | } |
1865 | 1865 | } |
1866 | 1866 | |
1867 | | void CSiteManager::OnSelchangingSitemanagertree(NMHDR* pNMHDR, LRESULT* pResult) |
| 1867 | void CSiteManager::OnSelchangingSitemanagertree(NMHDR* pNMHDR, LRESULT* pResult) |
1868 | 1868 | { |
1869 | 1869 | NM_TREEVIEW* pNMTreeView = (NM_TREEVIEW*)pNMHDR; |
1870 | 1870 | if (!CheckValid()) |
… |
… |
|
1877 | 1877 | *pResult = 0; |
1878 | 1878 | } |
1879 | 1879 | |
1880 | | void CSiteManager::OnSelchangedSitemanagertree(NMHDR* pNMHDR, LRESULT* pResult) |
| 1880 | void CSiteManager::OnSelchangedSitemanagertree(NMHDR* pNMHDR, LRESULT* pResult) |
1881 | 1881 | { |
1882 | 1882 | NM_TREEVIEW* pNMTreeView = (NM_TREEVIEW*)pNMHDR; |
1883 | 1883 | t_SiteManagerItem *pSiteManagerItem = (t_SiteManagerItem *)pNMTreeView->itemNew.lParam; |
… |
… |
|
1937 | 1937 | SetCtrlState(); |
1938 | 1938 | } |
1939 | 1939 | |
1940 | | void CSiteManager::OnItemexpandedSitemanagertree(NMHDR* pNMHDR, LRESULT* pResult) |
| 1940 | void CSiteManager::OnItemexpandedSitemanagertree(NMHDR* pNMHDR, LRESULT* pResult) |
1941 | 1941 | { |
1942 | 1942 | NM_TREEVIEW* pNMTreeView = (NM_TREEVIEW*)pNMHDR; |
1943 | | |
| 1943 | |
1944 | 1944 | int image=(pNMTreeView->itemNew.state&TVIS_EXPANDED)?1:0; |
1945 | 1945 | m_cTree.SetItemImage(pNMTreeView->itemNew.hItem,image,image); |
1946 | 1946 | *pResult = 0; |
1947 | 1947 | } |
1948 | 1948 | |
1949 | | BOOL CSiteManager::PreTranslateMessage(MSG* pMsg) |
| 1949 | BOOL CSiteManager::PreTranslateMessage(MSG* pMsg) |
1950 | 1950 | { |
1951 | 1951 | if (pMsg->message==WM_KEYDOWN) |
1952 | 1952 | { |
… |
… |
|
1983 | 1983 | } |
1984 | 1984 | } |
1985 | 1985 | } |
1986 | | |
| 1986 | |
1987 | 1987 | return CDialog::PreTranslateMessage(pMsg); |
1988 | 1988 | } |
1989 | 1989 | |
1990 | | void CSiteManager::OnDblclkSitemanagertree(NMHDR* pNMHDR, LRESULT* pResult) |
| 1990 | void CSiteManager::OnDblclkSitemanagertree(NMHDR* pNMHDR, LRESULT* pResult) |
1991 | 1991 | { |
1992 | 1992 | *pResult = 0; |
1993 | 1993 | HTREEITEM item=m_cTree.GetSelectedItem(); |
… |
… |
|
1998 | 1998 | if (site->NodeType != SITE) |
1999 | 1999 | return; |
2000 | 2000 | *pResult = TRUE; |
2001 | | OnOK(); |
| 2001 | OnOK(); |
2002 | 2002 | } |
2003 | 2003 | |
2004 | 2004 | DWORD CSiteManager::RegDeleteKeyEx(CString subkey) |
… |
… |
|
2022 | 2022 | return retval; |
2023 | 2023 | } |
2024 | 2024 | |
2025 | | void CSiteManager::OnEndlabeleditSitemanagertree(NMHDR* pNMHDR, LRESULT* pResult) |
| 2025 | void CSiteManager::OnEndlabeleditSitemanagertree(NMHDR* pNMHDR, LRESULT* pResult) |
2026 | 2026 | { |
2027 | 2027 | TV_DISPINFO* pTVDispInfo = (TV_DISPINFO*)pNMHDR; |
2028 | 2028 | if (!pTVDispInfo->item.pszText) |
… |
… |
|
2095 | 2095 | *pResult = TRUE; |
2096 | 2096 | } |
2097 | 2097 | |
2098 | | void CSiteManager::OnSitemanagerNewfolder() |
| 2098 | void CSiteManager::OnSitemanagerNewfolder() |
2099 | 2099 | { |
2100 | 2100 | if (!CheckValid()) |
2101 | 2101 | return; |
… |
… |
|
2104 | 2104 | parent=m_cTree.GetRootItem(); |
2105 | 2105 | if (((t_SiteManagerItem *)m_cTree.GetItemData(parent))->NodeType == SITE) |
2106 | 2106 | parent=m_cTree.GetParentItem(parent); |
2107 | | |
| 2107 | |
2108 | 2108 | CString name; |
2109 | 2109 | name.Format(IDS_SITEMANAGER_NEWFOLDER); |
2110 | 2110 | |
… |
… |
|
2116 | 2116 | name2.MakeLower(); |
2117 | 2117 | CString childstr=m_cTree.GetItemText(child); |
2118 | 2118 | childstr.MakeLower(); |
2119 | | if (childstr==name2) |
| 2119 | if (childstr==name2) |
2120 | 2120 | { |
2121 | 2121 | child=m_cTree.GetChildItem(parent); |
2122 | 2122 | name.Format(IDS_SITEMANAGER_NEWFOLDERWITHNUM,i); |
… |
… |
|
2125 | 2125 | } |
2126 | 2126 | child=m_cTree.GetNextItem(child,TVGN_NEXT); |
2127 | 2127 | } |
2128 | | |
| 2128 | |
2129 | 2129 | HTREEITEM item=m_cTree.InsertItem(name,0,0,parent,TVI_SORT); |
2130 | 2130 | t_SiteManagerItem *pFolder = new t_SiteManagerItem; |
2131 | 2131 | pFolder->name=name; |
… |
… |
|
2143 | 2143 | |
2144 | 2144 | m_cTree.Expand(parent,TVE_EXPAND);m_cTree.SelectItem(item); |
2145 | 2145 | DisplaySite(0); |
2146 | | m_cTree.EditLabel(item); |
| 2146 | m_cTree.EditLabel(item); |
2147 | 2147 | } |
2148 | 2148 | |
2149 | 2149 | t_SiteManagerItem * CSiteManager::GetDefaultSite(CString substring) |
… |
… |
|
2159 | 2159 | pMarkup->IntoElem(); |
2160 | 2160 | t_SiteManagerItem *pSite = GetDefaultSiteXML(pMarkup); |
2161 | 2161 | COptions::UnlockXML(); |
2162 | | return pSite; |
| 2162 | return pSite; |
2163 | 2163 | } |
2164 | 2164 | COptions::UnlockXML(); |
2165 | 2165 | } |
2166 | 2166 | } |
2167 | | |
| 2167 | |
2168 | 2168 | HKEY key; |
2169 | 2169 | HKEY hRootKey = HKEY_CURRENT_USER; |
2170 | 2170 | if (RegOpenKey(HKEY_CURRENT_USER, "Software\\FileZilla\\Site Manager\\" + substring, &key) != ERROR_SUCCESS) |
… |
… |
|
2196 | 2196 | return site; |
2197 | 2197 | index++; |
2198 | 2198 | length=1000; |
2199 | | } |
| 2199 | } |
2200 | 2200 | } |
2201 | 2201 | else |
2202 | 2202 | { |
… |
… |
|
2205 | 2205 | { |
2206 | 2206 | if (GetKey(hRootKey, substring,"Default Site")=="1") |
2207 | 2207 | return site; |
2208 | | else |
| 2208 | else |
2209 | 2209 | delete site; |
2210 | 2210 | } |
2211 | 2211 | index++; |
2212 | 2212 | length=1000; |
2213 | 2213 | } |
2214 | 2214 | RegCloseKey(key); |
2215 | | |
| 2215 | |
2216 | 2216 | return 0; |
2217 | 2217 | } |
2218 | 2218 | |
… |
… |
|
2244 | 2244 | return 0; |
2245 | 2245 | } |
2246 | 2246 | |
2247 | | void CSiteManager::OnBegindragSitemanagertree(NMHDR* pNMHDR, LRESULT* pResult) |
| 2247 | void CSiteManager::OnBegindragSitemanagertree(NMHDR* pNMHDR, LRESULT* pResult) |
2248 | 2248 | { |
2249 | 2249 | NM_TREEVIEW* pNMTreeView = (NM_TREEVIEW*)pNMHDR; |
2250 | 2250 | // TODO: Code für die Behandlungsroutine der Steuerelement-Benachrichtigung hier einfügen |
… |
… |
|
2261 | 2261 | return; |
2262 | 2262 | |
2263 | 2263 | m_cTree.EnsureVisible(pNMTreeView->itemNew.hItem); |
2264 | | |
| 2264 | |
2265 | 2265 | |
2266 | 2266 | m_pDragImage=m_cTree.CreateDragImage(pNMTreeView->itemNew.hItem); |
2267 | 2267 | if (m_pDragImage == NULL) |
… |
… |
|
2270 | 2270 | } |
2271 | 2271 | m_hDragItem=pNMTreeView->itemNew.hItem; |
2272 | 2272 | |
2273 | | CRect rect; |
2274 | | ::GetWindowRect(m_cTree.m_hWnd, &rect); |
2275 | | CPoint pt2 = pNMTreeView->ptDrag; |
| 2273 | CRect rect; |
| 2274 | ::GetWindowRect(m_cTree.m_hWnd, &rect); |
| 2275 | CPoint pt2 = pNMTreeView->ptDrag; |
2276 | 2276 | pt2.Offset(rect.left, rect.top); |
2277 | 2277 | m_pDragImage->BeginDrag(0, CPoint(0,0)); |
2278 | | m_pDragImage->DragEnter(0, pt2); |
| 2278 | m_pDragImage->DragEnter(0, pt2); |
2279 | 2279 | |
2280 | 2280 | SetCapture(); |
2281 | 2281 | } |
2282 | 2282 | |
2283 | | void CSiteManager::OnMouseMove(UINT nFlags, CPoint point) |
2284 | | { |
| 2283 | void CSiteManager::OnMouseMove(UINT nFlags, CPoint point) |
| 2284 | { |
2285 | 2285 | if (m_pDragImage) // In Drag&Drop mode ? |
2286 | 2286 | { |
2287 | 2287 | CPoint ptDropPoint(point); |
… |
… |
|
2289 | 2289 | CWnd* pDropWnd = CWnd::WindowFromPoint(ptDropPoint); |
2290 | 2290 | |
2291 | 2291 | m_pDragImage->DragMove(ptDropPoint); |
2292 | | |
| 2292 | |
2293 | 2293 | //Scroll through tree |
2294 | 2294 | RECT rect; |
2295 | 2295 | m_cTree.GetWindowRect(&rect); |
… |
… |
|
2300 | 2300 | { |
2301 | 2301 | if (!m_nDragScrollTimerID) |
2302 | 2302 | { |
2303 | | |
| 2303 | |
2304 | 2304 | HTREEITEM hItem=m_cTree.GetFirstVisibleItem(); |
2305 | 2305 | if (hItem) |
2306 | 2306 | hItem=m_cTree.GetNextItem(hItem, TVGN_PREVIOUSVISIBLE); |
… |
… |
|
2321 | 2321 | HTREEITEM hItem=m_cTree.GetFirstVisibleItem(); |
2322 | 2322 | while(hItem) |
2323 | 2323 | { |
2324 | | |
| 2324 | |
2325 | 2325 | RECT iRect; |
2326 | 2326 | m_cTree.GetItemRect(hItem, &iRect, TRUE); |
2327 | 2327 | if (iRect.bottom>=(rect.bottom-rect.top)) |
… |
… |
|
2353 | 2353 | if (hItem!=m_hDropItem) |
2354 | 2354 | { |
2355 | 2355 | m_pDragImage->DragShowNolock(FALSE); |
2356 | | m_cTree.SelectDropTarget(hItem); |
| 2356 | m_cTree.SelectDropTarget(hItem); |
2357 | 2357 | m_pDragImage->DragShowNolock(TRUE); |
2358 | 2358 | m_hDropItem=hItem; |
2359 | 2359 | } |
… |
… |
|
2388 | 2388 | if (str==dragstr) |
2389 | 2389 | bError=TRUE; |
2390 | 2390 | else |
2391 | | hChild=m_cTree.GetNextItem(hChild, TVGN_NEXT); |
| 2391 | hChild=m_cTree.GetNextItem(hChild, TVGN_NEXT); |
2392 | 2392 | } |
2393 | 2393 | else |
2394 | | hChild=m_cTree.GetNextItem(hChild, TVGN_NEXT); |
| 2394 | hChild=m_cTree.GetNextItem(hChild, TVGN_NEXT); |
2395 | 2395 | } |
2396 | 2396 | } |
2397 | 2397 | |
… |
… |
|
2399 | 2399 | |
2400 | 2400 | return; |
2401 | 2401 | } |
2402 | | |
| 2402 | |
2403 | 2403 | CDialog::OnMouseMove(nFlags, point); |
2404 | 2404 | } |
2405 | 2405 | |
2406 | | void CSiteManager::OnLButtonUp(UINT nFlags, CPoint point) |
| 2406 | void CSiteManager::OnLButtonUp(UINT nFlags, CPoint point) |
2407 | 2407 | { |
2408 | 2408 | if (m_pDragImage) // In Drag&Drop mode ? |
2409 | 2409 | { |
… |
… |
|
2422 | 2422 | ClientToScreen(&pt); |
2423 | 2423 | CWnd* m_pDropWnd = WindowFromPoint(pt); |
2424 | 2424 | |
2425 | | if (m_pDropWnd == &m_cTree) |
| 2425 | if (m_pDropWnd == &m_cTree) |
2426 | 2426 | { |
2427 | 2427 | BOOL nError=0; |
2428 | 2428 | if (hDropItem==m_hDragItem || m_cTree.GetParentItem(m_hDragItem)==hDropItem) |
… |
… |
|
2474 | 2474 | } |
2475 | 2475 | path+=m_cTree.GetItemText(m_hDragItem); |
2476 | 2476 | m_KeysToDelete.push_back(path); |
2477 | | |
| 2477 | |
2478 | 2478 | HTREEITEM hDragTemp=m_hDragItem; |
2479 | 2479 | HTREEITEM hDropTemp=hDropItem; |
2480 | 2480 | TCHAR str[1000]; |
… |
… |
|
2584 | 2584 | m_pDragImage->DragShowNolock(FALSE); |
2585 | 2585 | m_cTree.EnsureVisible(hItem); |
2586 | 2586 | m_cTree.RedrawWindow(); |
2587 | | m_pDragImage->DragShowNolock(TRUE); |
| 2587 | m_pDragImage->DragShowNolock(TRUE); |
2588 | 2588 | } |
2589 | 2589 | } |
2590 | 2590 | else if (m_CurPos.y>(rect.bottom-5)) |
… |
… |
|
2614 | 2614 | if (hItem!=m_hDropItem) |
2615 | 2615 | { |
2616 | 2616 | m_pDragImage->DragShowNolock(FALSE); |
2617 | | m_cTree.SelectDropTarget(hItem); |
| 2617 | m_cTree.SelectDropTarget(hItem); |
2618 | 2618 | m_pDragImage->DragShowNolock(TRUE); |
2619 | 2619 | m_hDropItem=hItem; |
2620 | 2620 | } |
2621 | 2621 | } |
2622 | 2622 | } |
2623 | 2623 | |
2624 | | void CSiteManager::OnSelchangeServertype() |
| 2624 | void CSiteManager::OnSelchangeServertype() |
2625 | 2625 | { |
2626 | 2626 | UpdateData(); |
2627 | 2627 | |
… |
… |
|
2663 | 2663 | } |
2664 | 2664 | } |
2665 | 2665 | |
2666 | | void CSiteManager::OnSitemanagerAdvanced() |
| 2666 | void CSiteManager::OnSitemanagerAdvanced() |
2667 | 2667 | { |
2668 | 2668 | HTREEITEM item = m_cTree.GetSelectedItem(); |
2669 | 2669 | if (!item) |
2670 | 2670 | return; |
2671 | | |
| 2671 | |
2672 | 2672 | t_SiteManagerItem *site = (t_SiteManagerItem *)m_cTree.GetItemData(item); |
2673 | 2673 | if (!site || site->NodeType != SITE) |
2674 | 2674 | return; |
2675 | 2675 | |
2676 | 2676 | CSiteManagerAdvancedDlg dlg(site); |
2677 | | |
| 2677 | |
2678 | 2678 | dlg.DoModal(); |
2679 | 2679 | } |
2680 | 2680 | |
… |
… |
|
2689 | 2689 | nUTF8 = 0; |
2690 | 2690 | } |
2691 | 2691 | |
2692 | | void CSiteManager::OnSitemanagerCopy() |
| 2692 | void CSiteManager::OnSitemanagerCopy() |
2693 | 2693 | { |
2694 | 2694 | if (!CheckValid()) |
2695 | 2695 | return; |
… |
… |
|
2704 | 2704 | ASSERT(m_cTree.GetItemData(parent)); |
2705 | 2705 | if (((t_SiteManagerItem *)m_cTree.GetItemData(parent))->NodeType==SITE) |
2706 | 2706 | return; |
2707 | | |
| 2707 | |
2708 | 2708 | ASSERT(m_cTree.GetItemData(parent) && ((t_SiteManagerItem *)m_cTree.GetItemData(parent))->NodeType==FOLDER); |
2709 | | |
| 2709 | |
2710 | 2710 | CString name = m_cTree.GetItemText(from); |
2711 | 2711 | |
2712 | 2712 | HTREEITEM child=m_cTree.GetChildItem(parent); |
… |
… |
|
2717 | 2717 | name2.MakeLower(); |
2718 | 2718 | CString childstr=m_cTree.GetItemText(child); |
2719 | 2719 | childstr.MakeLower(); |
2720 | | if (childstr==name2) |
| 2720 | if (childstr==name2) |
2721 | 2721 | { |
2722 | 2722 | child=m_cTree.GetChildItem(parent); |
2723 | 2723 | name.Format(m_cTree.GetItemText(from) + _T(" %d"), i); |
… |
… |
|
2726 | 2726 | } |
2727 | 2727 | child=m_cTree.GetNextItem(child,TVGN_NEXT); |
2728 | 2728 | } |
2729 | | |
| 2729 | |
2730 | 2730 | HTREEITEM item=m_cTree.InsertItem(name, 2, 2, parent, TVI_SORT); |
2731 | 2731 | m_cTree.Expand(parent, TVE_EXPAND); |
2732 | 2732 | t_SiteManagerItem *site=new t_SiteManagerItem; |
… |
… |
|
2745 | 2745 | |
2746 | 2746 | m_cTree.SelectItem(item); |
2747 | 2747 | DisplaySite(site); |
2748 | | m_cTree.EditLabel(item); |
| 2748 | m_cTree.EditLabel(item); |
2749 | 2749 | } |
2750 | 2750 | |
2751 | | void CSiteManager::OnSitemanagerRename() |
| 2751 | void CSiteManager::OnSitemanagerRename() |
2752 | 2752 | { |
2753 | 2753 | HTREEITEM item=m_cTree.GetSelectedItem(); |
2754 | 2754 | if (!item) |
… |
… |
|
2777 | 2777 | pMarkup->IntoElem(); |
2778 | 2778 | t_SiteManagerItem *pSite = GetSiteByNameXML(pMarkup, name); |
2779 | 2779 | COptions::UnlockXML(); |
2780 | | return pSite; |
| 2780 | return pSite; |
2781 | 2781 | } |
2782 | 2782 | COptions::UnlockXML(); |
2783 | 2783 | } |
… |
… |
|
2827 | 2827 | }; |
2828 | 2828 | |
2829 | 2829 | return GetDataXML(pMarkup); |
2830 | | } |
2831 | | No newline at end of file |
| 2830 | } |
RCS file: /cvsroot/filezilla/FileZilla/source/FileZilla.rc,v
retrieving revision 1.204
diff -u -r1.204 FileZilla.rc
|
|
|
52 | 52 | LTEXT "&Host:",IDC_STATIC,148,52,18,8 |
53 | 53 | EDITTEXT IDC_MANUALTRANSFER_HOST,148,61,127,14,ES_AUTOHSCROLL |
54 | 54 | LTEXT "&Port:",IDC_STATIC,281,52,16,8 |
55 | | EDITTEXT IDC_MANUALTRANSFER_PORT,280,61,25,14,ES_AUTOHSCROLL | |
| 55 | EDITTEXT IDC_MANUALTRANSFER_PORT,280,61,25,14,ES_AUTOHSCROLL | |
56 | 56 | ES_NUMBER |
57 | 57 | LTEXT "&Servertype:",IDC_STATIC,148,80,37,8 |
58 | 58 | COMBOBOX IDC_MANUALTRANSFER_SERVERTYPE,148,90,157,49, |
… |
… |
|
68 | 68 | LTEXT "Us&er:",IDC_STATIC,148,149,18,8 |
69 | 69 | EDITTEXT IDC_MANUALTRANSFER_USER,148,158,157,14,ES_AUTOHSCROLL |
70 | 70 | LTEXT "Pass&word:",IDC_STATIC,148,176,34,8 |
71 | | EDITTEXT IDC_MANUALTRANSFER_PASS,148,185,157,14,ES_PASSWORD | |
| 71 | EDITTEXT IDC_MANUALTRANSFER_PASS,148,185,157,14,ES_PASSWORD | |
72 | 72 | ES_AUTOHSCROLL |
73 | 73 | DEFPUSHBUTTON "OK",IDOK,15,191,50,14 |
74 | 74 | PUSHBUTTON "Cancel",IDCANCEL,75,191,50,14 |
… |
… |
|
77 | 77 | END |
78 | 78 | |
79 | 79 | IDD_ABOUTBOX DIALOGEX 0, 0, 235, 82 |
80 | | STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | |
| 80 | STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | |
81 | 81 | WS_SYSMENU |
82 | 82 | CAPTION "About FileZilla" |
83 | 83 | FONT 8, "MS Shell Dlg", 0, 0, 0x0 |
… |
… |
|
91 | 91 | IDC_HOMEPAGE,82,54,146,8 |
92 | 92 | LTEXT "Tim Kosse",IDC_MAIL,82,40,34,8 |
93 | 93 | LTEXT "Homepage:",IDC_STATIC,41,54,38,8 |
94 | | LTEXT "Translated by:",IDC_TRANSLATEDBY,41,68,46,8,NOT |
| 94 | LTEXT "Translated by:",IDC_TRANSLATEDBY,41,68,46,8,NOT |
95 | 95 | WS_VISIBLE |
96 | | LTEXT "<your name> (<your e-mail>)",IDC_MAIL2,89,68,89,8,NOT |
| 96 | LTEXT "<your name> (<your e-mail>)",IDC_MAIL2,89,68,89,8,NOT |
97 | 97 | WS_VISIBLE |
98 | 98 | CONTROL "",IDC_DONATE,"Static",SS_BITMAP,182,28,15,13 |
99 | 99 | END |
… |
… |
|
138 | 138 | CONTROL "&Skip",IDC_FILEEXISTS_SKIP,"Button",BS_AUTORADIOBUTTON, |
139 | 139 | 172,62,30,10 |
140 | 140 | CONTROL "Always use this action when a file already exists", |
141 | | IDC_FILEEXISTS_ALWAYS,"Button",BS_AUTOCHECKBOX | |
| 141 | IDC_FILEEXISTS_ALWAYS,"Button",BS_AUTOCHECKBOX | |
142 | 142 | BS_VCENTER | BS_MULTILINE | WS_GROUP | WS_TABSTOP,170,83, |
143 | 143 | 82,30 |
144 | 144 | DEFPUSHBUTTON "OK",IDOK,105,103,50,14 |
… |
… |
|
152 | 152 | FONT 8, "MS Shell Dlg", 0, 0, 0x0 |
153 | 153 | BEGIN |
154 | 154 | CONTROL "&Limit local ports used by FileZilla", |
155 | | IDC_OPTIONS_FIREWALL_LIMITPORTS,"Button",BS_AUTOCHECKBOX | |
| 155 | IDC_OPTIONS_FIREWALL_LIMITPORTS,"Button",BS_AUTOCHECKBOX | |
156 | 156 | WS_TABSTOP,7,7,116,10 |
157 | 157 | LTEXT "By default FileZilla uses any available local port to establish connections and transfers. If you want FileZilla to use only a small range of ports, please enter the port range below.", |
158 | 158 | IDC_STATIC,19,17,260,24 |
… |
… |
|
227 | 227 | BEGIN |
228 | 228 | LTEXT "Please select the language, FileZilla should use:", |
229 | 229 | IDC_STATIC,7,7,152,8 |
230 | | LISTBOX IDC_LANGUAGELIST,7,21,154,153,LBS_NOINTEGRALHEIGHT | |
| 230 | LISTBOX IDC_LANGUAGELIST,7,21,154,153,LBS_NOINTEGRALHEIGHT | |
231 | 231 | WS_VSCROLL | WS_TABSTOP |
232 | 232 | END |
233 | 233 | |
… |
… |
|
243 | 243 | 13,29,137,10 |
244 | 244 | EDITTEXT IDC_DEFAULTFOLDER,24,41,160,14,ES_AUTOHSCROLL | WS_GROUP |
245 | 245 | CONTROL "&Open Sitemanager each time FileZilla starts", |
246 | | IDC_SITEMANAGERONSTART,"Button",BS_AUTOCHECKBOX | |
| 246 | IDC_SITEMANAGERONSTART,"Button",BS_AUTOCHECKBOX | |
247 | 247 | WS_TABSTOP,13,77,151,10 |
248 | 248 | CONTROL "Sort &folders first in Sitemanager", |
249 | | IDC_SITEMANAGERSORTFOLDERSFIRST,"Button",BS_AUTOCHECKBOX | |
| 249 | IDC_SITEMANAGERSORTFOLDERSFIRST,"Button",BS_AUTOCHECKBOX | |
250 | 250 | WS_TABSTOP,13,89,113,10 |
251 | 251 | CONTROL "Don't &expand folders by default", |
252 | | IDC_SITEMANAGEREXPANDFOLDERS,"Button",BS_AUTOCHECKBOX | |
| 252 | IDC_SITEMANAGEREXPANDFOLDERS,"Button",BS_AUTOCHECKBOX | |
253 | 253 | WS_TABSTOP,13,101,113,10 |
254 | 254 | GROUPBOX "Sitemanager Options",IDC_STATIC,7,66,272,49 |
255 | 255 | END |
… |
… |
|
284 | 284 | END |
285 | 285 | |
286 | 286 | IDD_CHMOD DIALOGEX 0, 0, 199, 186 |
287 | | STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | |
| 287 | STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | |
288 | 288 | WS_SYSMENU |
289 | 289 | CAPTION "Change File Attributes" |
290 | 290 | FONT 8, "MS Shell Dlg", 0, 0, 0x0 |
291 | 291 | BEGIN |
292 | 292 | LTEXT "Text",IDC_TEXT,7,7,185,19 |
293 | 293 | GROUPBOX "Owner permissions",IDC_STATIC,7,27,185,25 |
294 | | CONTROL "&Read",IDC_OWNERREAD,"Button",BS_AUTO3STATE | |
| 294 | CONTROL "&Read",IDC_OWNERREAD,"Button",BS_AUTO3STATE | |
295 | 295 | WS_TABSTOP,19,38,33,10 |
296 | | CONTROL "&Write",IDC_OWNERWRITE,"Button",BS_AUTO3STATE | |
| 296 | CONTROL "&Write",IDC_OWNERWRITE,"Button",BS_AUTO3STATE | |
297 | 297 | WS_TABSTOP,78,38,33,10 |
298 | | CONTROL "&Execute",IDC_OWNEREXECUTE,"Button",BS_AUTO3STATE | |
| 298 | CONTROL "&Execute",IDC_OWNEREXECUTE,"Button",BS_AUTO3STATE | |
299 | 299 | WS_TABSTOP,137,38,42,10 |
300 | 300 | GROUPBOX "Group permissions",IDC_STATIC,7,58,185,25 |
301 | | CONTROL "Re&ad",IDC_GROUPREAD,"Button",BS_AUTO3STATE | |
| 301 | CONTROL "Re&ad",IDC_GROUPREAD,"Button",BS_AUTO3STATE | |
302 | 302 | WS_TABSTOP,19,69,33,10 |
303 | | CONTROL "W&rite",IDC_GROUPWRITE,"Button",BS_AUTO3STATE | |
| 303 | CONTROL "W&rite",IDC_GROUPWRITE,"Button",BS_AUTO3STATE | |
304 | 304 | WS_TABSTOP,78,69,33,10 |
305 | | CONTROL "E&xecute",IDC_GROUPEXECUTE,"Button",BS_AUTO3STATE | |
| 305 | CONTROL "E&xecute",IDC_GROUPEXECUTE,"Button",BS_AUTO3STATE | |
306 | 306 | WS_TABSTOP,137,69,42,10 |
307 | 307 | GROUPBOX "Public permissions",IDC_STATIC,7,89,185,25 |
308 | | CONTROL "Rea&d",IDC_PUBLICREAD,"Button",BS_AUTO3STATE | |
| 308 | CONTROL "Rea&d",IDC_PUBLICREAD,"Button",BS_AUTO3STATE | |
309 | 309 | WS_TABSTOP,19,100,33,10 |
310 | | CONTROL "Wr&ite",IDC_PUBLICWRITE,"Button",BS_AUTO3STATE | |
| 310 | CONTROL "Wr&ite",IDC_PUBLICWRITE,"Button",BS_AUTO3STATE | |
311 | 311 | WS_TABSTOP,78,100,33,10 |
312 | | CONTROL "Exec&ute",IDC_PUBLICEXECUTE,"Button",BS_AUTO3STATE | |
| 312 | CONTROL "Exec&ute",IDC_PUBLICEXECUTE,"Button",BS_AUTO3STATE | |
313 | 313 | WS_TABSTOP,137,100,42,10 |
314 | 314 | LTEXT "Please note that not all servers understand this command. This command is mostly used by UNIX servers.", |
315 | 315 | IDC_STATIC,7,144,185,20 |
… |
… |
|
332 | 332 | EDITTEXT IDC_USER,95,28,56,14,ES_AUTOHSCROLL |
333 | 333 | LTEXT "&Password:",IDC_STATIC,57,52,34,8 |
334 | 334 | EDITTEXT IDC_PASS,95,50,56,14,ES_PASSWORD | ES_AUTOHSCROLL |
335 | | CONTROL "&Transfer now",IDC_TRANSFERNOW,"Button",BS_AUTOCHECKBOX | |
| 335 | CONTROL "&Transfer now",IDC_TRANSFERNOW,"Button",BS_AUTOCHECKBOX | |
336 | 336 | WS_TABSTOP,75,70,57,10 |
337 | 337 | DEFPUSHBUTTON "&OK",IDOK,46,85,50,14 |
338 | 338 | PUSHBUTTON "&Cancel",IDCANCEL,112,85,50,14 |
… |
… |
|
343 | 343 | FONT 8, "MS Shell Dlg" |
344 | 344 | BEGIN |
345 | 345 | GROUPBOX "Default transfer type",IDC_STATIC,7,7,272,47 |
346 | | CONTROL "A&uto detect",IDC_TYPEMODE,"Button",BS_AUTORADIOBUTTON | |
| 346 | CONTROL "A&uto detect",IDC_TYPEMODE,"Button",BS_AUTORADIOBUTTON | |
347 | 347 | WS_GROUP,16,20,53,10 |
348 | 348 | CONTROL "A&SCII",IDC_TYPEMODE2,"Button",BS_AUTORADIOBUTTON,16,30, |
349 | 349 | 34,10 |
… |
… |
|
354 | 354 | GROUPBOX "ASCII files",IDC_STATIC,7,61,272,140,WS_GROUP |
355 | 355 | LTEXT "If you have chosen autodetect, FileZilla will use ASCII transfer for the following file types:", |
356 | 356 | IDC_STATIC,14,76,256,16 |
357 | | LISTBOX IDC_TYPELIST,13,98,87,95,LBS_SORT | LBS_NOINTEGRALHEIGHT | |
| 357 | LISTBOX IDC_TYPELIST,13,98,87,95,LBS_SORT | LBS_NOINTEGRALHEIGHT | |
358 | 358 | WS_VSCROLL | WS_TABSTOP |
359 | 359 | EDITTEXT IDC_TYPENAME,112,98,49,14,ES_AUTOHSCROLL |
360 | 360 | PUSHBUTTON "&Add",IDC_TYPEADD,111,117,50,14 |
… |
… |
|
370 | 370 | FONT 8, "MS Shell Dlg" |
371 | 371 | BEGIN |
372 | 372 | CONTROL "Tree1",IDC_SITEMANAGERTREE,"SysTreeView32", |
373 | | TVS_HASBUTTONS | TVS_HASLINES | TVS_EDITLABELS | |
| 373 | TVS_HASBUTTONS | TVS_HASLINES | TVS_EDITLABELS | |
374 | 374 | TVS_SHOWSELALWAYS | WS_BORDER | WS_TABSTOP,7,4,160,204 |
375 | 375 | GROUPBOX "Site details",IDC_STATIC,174,0,169,244 |
376 | 376 | LTEXT "&Host:",IDC_STATIC,180,11,18,8 |
… |
… |
|
378 | 378 | LTEXT "&Port:",IDC_STATIC,312,11,16,8 |
379 | 379 | EDITTEXT IDC_PORT,312,20,25,14,ES_AUTOHSCROLL | ES_NUMBER |
380 | 380 | LTEXT "&Servertype:",IDC_STATIC,180,38,37,8 |
381 | | COMBOBOX IDC_SERVERTYPE,180,48,157,49,CBS_DROPDOWNLIST | |
| 381 | COMBOBOX IDC_SERVERTYPE,180,48,157,49,CBS_DROPDOWNLIST | |
382 | 382 | WS_VSCROLL | WS_TABSTOP |
383 | 383 | GROUPBOX "Logontype",IDC_STATIC,180,66,157,38 |
384 | | CONTROL "Anony&mous",IDC_RADIO1,"Button",BS_AUTORADIOBUTTON | |
| 384 | CONTROL "Anony&mous",IDC_RADIO1,"Button",BS_AUTORADIOBUTTON | |
385 | 385 | WS_GROUP,189,77,53,10 |
386 | 386 | CONTROL "Norma&l",IDC_RADIO2,"Button",BS_AUTORADIOBUTTON,259,77, |
387 | 387 | 38,10 |
… |
… |
|
395 | 395 | BS_AUTOCHECKBOX | BS_MULTILINE | WS_TABSTOP,180,162,86, |
396 | 396 | 10 |
397 | 397 | LTEXT "C&omments:",IDC_STATIC,180,177,36,8 |
398 | | EDITTEXT IDC_SITEMANAGER_COMMENTS,180,188,157,28,ES_MULTILINE | |
| 398 | EDITTEXT IDC_SITEMANAGER_COMMENTS,180,188,157,28,ES_MULTILINE | |
399 | 399 | ES_AUTOVSCROLL | WS_VSCROLL |
400 | | CONTROL "De&fault site",IDC_DEFAULT,"Button",BS_AUTORADIOBUTTON | |
| 400 | CONTROL "De&fault site",IDC_DEFAULT,"Button",BS_AUTORADIOBUTTON | |
401 | 401 | WS_GROUP,180,226,51,10 |
402 | 402 | PUSHBUTTON "&New Site",IDC_NEW,7,212,50,14,WS_GROUP |
403 | 403 | PUSHBUTTON "N&ew Folder",IDC_SITEMANAGER_NEWFOLDER,62,212,50,14, |
… |
… |
|
429 | 429 | LTEXT "Current configuration",IDC_STATIC,14,50,66,8 |
430 | 430 | LTEXT "Show these parts of the GUI:",IDC_STATIC,27,62,39,28, |
431 | 431 | NOT WS_GROUP |
432 | | CONTROL "&Toolbar",IDC_SHOWTOOLBAR,"Button",BS_AUTOCHECKBOX | |
| 432 | CONTROL "&Toolbar",IDC_SHOWTOOLBAR,"Button",BS_AUTOCHECKBOX | |
433 | 433 | WS_TABSTOP,72,61,40,10 |
434 | | CONTROL "&Statusbar",IDC_SHOWSTATUSBAR,"Button",BS_AUTOCHECKBOX | |
| 434 | CONTROL "&Statusbar",IDC_SHOWSTATUSBAR,"Button",BS_AUTOCHECKBOX | |
435 | 435 | WS_TABSTOP,138,61,46,10 |
436 | 436 | CONTROL "&Quickconnect Bar",IDC_SHOWQUICKCONNECTBAR,"Button", |
437 | 437 | BS_AUTOCHECKBOX | WS_TABSTOP,203,61,73,10 |
… |
… |
|
447 | 447 | CONTROL "Show &view labels",IDC_VIEWLABELS,"Button", |
448 | 448 | BS_AUTOCHECKBOX | WS_TABSTOP,13,123,71,10 |
449 | 449 | CONTROL "Remember &window size and position of FileZilla", |
450 | | IDC_REMEMBERWINDOWPOS,"Button",BS_AUTOCHECKBOX | |
| 450 | IDC_REMEMBERWINDOWPOS,"Button",BS_AUTOCHECKBOX | |
451 | 451 | WS_TABSTOP,13,134,163,10 |
452 | 452 | CONTROL "Mi&nimize to taskbar (default)", |
453 | 453 | IDC_OPTIONS_INTERFACE_MINIMIZETOTRAY,"Button", |
… |
… |
|
466 | 466 | BEGIN |
467 | 467 | CONTROL "&Enable Kerberos GSS support",IDC_USEGSS,"Button", |
468 | 468 | BS_AUTOCHECKBOX | WS_TABSTOP,7,7,110,10 |
469 | | LISTBOX IDC_SERVERLIST,15,64,108,129,LBS_SORT | |
| 469 | LISTBOX IDC_SERVERLIST,15,64,108,129,LBS_SORT | |
470 | 470 | LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP |
471 | 471 | EDITTEXT IDC_GSSSERVERNAME,129,64,49,14,ES_AUTOHSCROLL |
472 | 472 | PUSHBUTTON "&Add",IDC_SERVERADD,128,83,50,14 |
… |
… |
|
487 | 487 | LTEXT "These settings are only for debug purposes. Normally you don't have to change them.\nBut if you encounter any problems in FileZilla you may enable the debug features. The additional output may help to fix the problem.", |
488 | 488 | IDC_STATIC,7,7,272,35 |
489 | 489 | CONTROL "&Trace messages from the ftp engine", |
490 | | IDC_DEBUG_ENGINETRACE,"Button",BS_AUTOCHECKBOX | |
| 490 | IDC_DEBUG_ENGINETRACE,"Button",BS_AUTOCHECKBOX | |
491 | 491 | WS_TABSTOP,7,43,129,10 |
492 | 492 | CONTROL "&Show raw directory listing",IDC_DEBUG_SHOWRAWLISTING, |
493 | 493 | "Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,56,129,10 |
… |
… |
|
506 | 506 | LTEXT "&User",IDC_STATIC,7,36,16,8 |
507 | 507 | EDITTEXT IDC_EDIT7,7,47,40,14,ES_AUTOHSCROLL | WS_DISABLED |
508 | 508 | LTEXT "P&ass",IDC_STATIC,53,36,16,8 |
509 | | EDITTEXT IDC_EDIT8,53,47,40,14,ES_PASSWORD | ES_AUTOHSCROLL | |
| 509 | EDITTEXT IDC_EDIT8,53,47,40,14,ES_PASSWORD | ES_AUTOHSCROLL | |
510 | 510 | WS_DISABLED |
511 | 511 | GROUPBOX "Proxy &type",IDC_STATIC,7,71,272,103 |
512 | | CONTROL "None",IDC_RADIO3,"Button",BS_AUTORADIOBUTTON | WS_GROUP | |
| 512 | CONTROL "None",IDC_RADIO3,"Button",BS_AUTORADIOBUTTON | WS_GROUP | |
513 | 513 | WS_TABSTOP,17,81,33,10 |
514 | 514 | CONTROL "SITE hostname",IDC_RADIO4,"Button",BS_AUTORADIOBUTTON, |
515 | 515 | 17,91,65,10 |
… |
… |
|
536 | 536 | LTEXT "On this page you can configure the appearance of the local file list.", |
537 | 537 | IDC_STATIC,7,7,211,8 |
538 | 538 | CONTROL "&Always use the following configuration:", |
539 | | IDC_OPTIONS_LOCALVIEW_ALWAYS,"Button",BS_AUTORADIOBUTTON | |
| 539 | IDC_OPTIONS_LOCALVIEW_ALWAYS,"Button",BS_AUTORADIOBUTTON | |
540 | 540 | WS_GROUP,7,20,137,10 |
541 | | LTEXT "&Default list style:",IDC_STATIC,19,35,52,8,NOT |
| 541 | LTEXT "&Default list style:",IDC_STATIC,19,35,52,8,NOT |
542 | 542 | WS_GROUP |
543 | | COMBOBOX IDC_OPTIONS_LOCALVIEW_STYLE,73,34,72,76,CBS_DROPDOWNLIST | |
| 543 | COMBOBOX IDC_OPTIONS_LOCALVIEW_STYLE,73,34,72,76,CBS_DROPDOWNLIST | |
544 | 544 | WS_VSCROLL | WS_TABSTOP |
545 | 545 | LTEXT "Visible columns when using details style:",IDC_STATIC, |
546 | 546 | 19,49,127,8,NOT WS_GROUP |
… |
… |
|
587 | 587 | CONTROL "&Always use the following configuration:", |
588 | 588 | IDC_OPTIONS_REMOTEVIEW_ALWAYS,"Button", |
589 | 589 | BS_AUTORADIOBUTTON | WS_GROUP,7,20,137,10 |
590 | | LTEXT "D&efault list style:",IDC_STATIC,19,35,52,8,NOT |
| 590 | LTEXT "D&efault list style:",IDC_STATIC,19,35,52,8,NOT |
591 | 591 | WS_GROUP |
592 | 592 | COMBOBOX IDC_OPTIONS_REMOTEVIEW_STYLE,73,34,72,76, |
593 | 593 | CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP |
… |
… |
|
659 | 659 | LTEXT "There are different types of directory caching available.", |
660 | 660 | IDC_STATIC,7,114,174,8,NOT WS_VISIBLE |
661 | 661 | CONTROL "Purge cache when FileZilla quits", |
662 | | IDC_OPTIONS_CACHE_CACHETYPE,"Button",BS_AUTORADIOBUTTON | |
| 662 | IDC_OPTIONS_CACHE_CACHETYPE,"Button",BS_AUTORADIOBUTTON | |
663 | 663 | NOT WS_VISIBLE,7,124,118,10 |
664 | 664 | CONTROL "Use persistent cache",IDC_OPTIONS_CACHE_CACHETYPE2, |
665 | 665 | "Button",BS_AUTORADIOBUTTON | NOT WS_VISIBLE,7,134,83,10 |
666 | 666 | END |
667 | 667 | |
668 | 668 | IDD_SERVER_CHANGEPASS DIALOGEX 0, 0, 186, 138 |
669 | | STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | |
| 669 | STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | |
670 | 670 | WS_SYSMENU |
671 | 671 | FONT 8, "MS Shell Dlg", 0, 0, 0x0 |
672 | 672 | BEGIN |
… |
… |
|
675 | 675 | LTEXT "Please enter your old password for confirmation that you are allowed to change the password and enter the new password an confirm it.", |
676 | 676 | IDC_STATIC,7,33,172,24 |
677 | 677 | LTEXT "&Old password:",IDC_STATIC,7,64,46,8 |
678 | | EDITTEXT IDC_SERVER_CHANGEPASS_OLD,86,61,93,14,ES_PASSWORD | |
| 678 | EDITTEXT IDC_SERVER_CHANGEPASS_OLD,86,61,93,14,ES_PASSWORD | |
679 | 679 | ES_AUTOHSCROLL |
680 | 680 | LTEXT "&New password:",IDC_STATIC,7,83,50,8 |
681 | | EDITTEXT IDC_SERVER_CHANGEPASS_NEW,86,80,93,14,ES_PASSWORD | |
| 681 | EDITTEXT IDC_SERVER_CHANGEPASS_NEW,86,80,93,14,ES_PASSWORD | |
682 | 682 | ES_AUTOHSCROLL |
683 | 683 | LTEXT "&Confirm new password:",IDC_STATIC,7,102,74,8 |
684 | | EDITTEXT IDC_SERVER_CHANGEPASS_NEW2,86,99,93,14,ES_PASSWORD | |
| 684 | EDITTEXT IDC_SERVER_CHANGEPASS_NEW2,86,99,93,14,ES_PASSWORD | |
685 | 685 | ES_AUTOHSCROLL |
686 | 686 | DEFPUSHBUTTON "&OK",IDOK,35,117,50,14 |
687 | 687 | PUSHBUTTON "&Cancel",IDCANCEL,99,117,50,14 |
… |
… |
|
803 | 803 | PUSHBUTTON "&Browse",IDC_OPTIONS_VIEWEDIT_DEFAULT_BROWSE,229,31,50, |
804 | 804 | 14 |
805 | 805 | LTEXT "&Custom file associations:",IDC_STATIC,7,48,78,8 |
806 | | EDITTEXT IDC_OPTIONS_VIEWEDIT_CUSTOM,7,58,272,99,ES_MULTILINE | |
807 | | ES_AUTOVSCROLL | ES_AUTOHSCROLL | ES_WANTRETURN | |
| 806 | EDITTEXT IDC_OPTIONS_VIEWEDIT_CUSTOM,7,58,272,99,ES_MULTILINE | |
| 807 | ES_AUTOVSCROLL | ES_AUTOHSCROLL | ES_WANTRETURN | |
808 | 808 | WS_VSCROLL | WS_HSCROLL |
809 | 809 | LTEXT "Each line represents one file association. Every line begins with the file extension followed by a space. Then the program that will be used to view or edit the file follows. Quote extensions if they contain spaces itself. Invalid lines will be removed.", |
810 | 810 | IDC_STATIC,7,161,272,25 |
… |
… |
|
825 | 825 | LTEXT "&System:",IDC_STATIC,177,41,26,8 |
826 | 826 | EDITTEXT IDC_OPTIONS_IDENT_SYSTEM,206,38,73,14,ES_AUTOHSCROLL |
827 | 827 | CONTROL "Enable only when &connecting", |
828 | | IDC_OPTIONS_IDENT_IDENTCONNECT,"Button",BS_AUTOCHECKBOX | |
| 828 | IDC_OPTIONS_IDENT_IDENTCONNECT,"Button",BS_AUTOCHECKBOX | |
829 | 829 | WS_TABSTOP,7,58,109,10 |
830 | 830 | CONTROL "Only accept requests from the same &IP", |
831 | | IDC_OPTIONS_IDENT_SAMEIP,"Button",BS_AUTOCHECKBOX | |
| 831 | IDC_OPTIONS_IDENT_SAMEIP,"Button",BS_AUTOCHECKBOX | |
832 | 832 | WS_TABSTOP,142,58,137,10 |
833 | 833 | END |
834 | 834 | |
… |
… |
|
848 | 848 | ES_AUTOHSCROLL | ES_NUMBER | WS_DISABLED |
849 | 849 | LTEXT "kB/s",IDC_STATIC,162,27,16,8 |
850 | 850 | LISTBOX IDC_SPEEDLIMIT_DOWNLOAD_RULES_LIST,24,46,211,50, |
851 | | LBS_NOINTEGRALHEIGHT | WS_DISABLED | WS_VSCROLL | |
| 851 | LBS_NOINTEGRALHEIGHT | WS_DISABLED | WS_VSCROLL | |
852 | 852 | WS_GROUP | WS_TABSTOP |
853 | 853 | PUSHBUTTON "&Add",IDC_SPEEDLIMIT_DOWNLOAD_ADD,240,47,35,10, |
854 | 854 | WS_DISABLED |
… |
… |
|
866 | 866 | BS_AUTORADIOBUTTON,12,125,91,10 |
867 | 867 | CONTROL "Us&e Speed Limit Rules:",IDC_SPEEDLIMIT_UPLOAD_RULES, |
868 | 868 | "Button",BS_AUTORADIOBUTTON,12,135,89,10 |
869 | | EDITTEXT IDC_SPEEDLIMIT_UPLOAD_VALUE,105,122,55,14,ES_AUTOHSCROLL | |
| 869 | EDITTEXT IDC_SPEEDLIMIT_UPLOAD_VALUE,105,122,55,14,ES_AUTOHSCROLL | |
870 | 870 | ES_NUMBER | WS_DISABLED |
871 | 871 | LTEXT "kB/s",IDC_STATIC,163,125,16,8 |
872 | 872 | LISTBOX IDC_SPEEDLIMIT_UPLOAD_RULES_LIST,24,146,211,50, |
873 | | LBS_NOINTEGRALHEIGHT | WS_DISABLED | WS_VSCROLL | |
| 873 | LBS_NOINTEGRALHEIGHT | WS_DISABLED | WS_VSCROLL | |
874 | 874 | WS_GROUP | WS_TABSTOP |
875 | 875 | PUSHBUTTON "A&dd",IDC_SPEEDLIMIT_UPLOAD_ADD,240,147,35,10, |
876 | 876 | WS_DISABLED |
… |
… |
|
887 | 887 | FONT 8, "MS Shell Dlg" |
888 | 888 | BEGIN |
889 | 889 | GROUPBOX "Criteria",IDC_STATIC,7,3,213,87 |
890 | | CONTROL "&Date:",IDC_DATE_CHECK,"Button",BS_AUTOCHECKBOX | |
| 890 | CONTROL "&Date:",IDC_DATE_CHECK,"Button",BS_AUTOCHECKBOX | |
891 | 891 | WS_TABSTOP,15,18,33,10 |
892 | 892 | CONTROL "DateTimePicker1",IDC_DATE_VALUE,"SysDateTimePick32", |
893 | | DTS_RIGHTALIGN | DTS_APPCANPARSE | DTS_LONGDATEFORMAT | |
| 893 | DTS_RIGHTALIGN | DTS_APPCANPARSE | DTS_LONGDATEFORMAT | |
894 | 894 | WS_TABSTOP,50,16,125,15 |
895 | | CONTROL "&From:",IDC_FROM_CHECK,"Button",BS_AUTOCHECKBOX | |
| 895 | CONTROL "&From:",IDC_FROM_CHECK,"Button",BS_AUTOCHECKBOX | |
896 | 896 | WS_TABSTOP,15,39,33,10 |
897 | 897 | CONTROL "DateTimePicker2",IDC_FROM_TIME,"SysDateTimePick32", |
898 | | DTS_RIGHTALIGN | DTS_UPDOWN | DTS_APPCANPARSE | |
| 898 | DTS_RIGHTALIGN | DTS_UPDOWN | DTS_APPCANPARSE | |
899 | 899 | WS_TABSTOP | 0x8,50,37,55,15 |
900 | | CONTROL "T&o:",IDC_TO_CHECK,"Button",BS_AUTOCHECKBOX | |
| 900 | CONTROL "T&o:",IDC_TO_CHECK,"Button",BS_AUTOCHECKBOX | |
901 | 901 | WS_TABSTOP,117,39,27,10 |
902 | 902 | CONTROL "DateTimePicker2",IDC_TO_TIME,"SysDateTimePick32", |
903 | | DTS_RIGHTALIGN | DTS_UPDOWN | DTS_APPCANPARSE | |
| 903 | DTS_RIGHTALIGN | DTS_UPDOWN | DTS_APPCANPARSE | |
904 | 904 | WS_TABSTOP | 0x8,145,37,55,15 |
905 | | CONTROL "&Monday",IDC_CHECK_DAY1,"Button",BS_AUTOCHECKBOX | |
| 905 | CONTROL "&Monday",IDC_CHECK_DAY1,"Button",BS_AUTOCHECKBOX | |
906 | 906 | WS_TABSTOP,15,57,41,10 |
907 | | CONTROL "&Tuesday",IDC_CHECK_DAY2,"Button",BS_AUTOCHECKBOX | |
| 907 | CONTROL "&Tuesday",IDC_CHECK_DAY2,"Button",BS_AUTOCHECKBOX | |
908 | 908 | WS_TABSTOP,61,57,43,10 |
909 | | CONTROL "&Wednesday",IDC_CHECK_DAY3,"Button",BS_AUTOCHECKBOX | |
| 909 | CONTROL "&Wednesday",IDC_CHECK_DAY3,"Button",BS_AUTOCHECKBOX | |
910 | 910 | WS_TABSTOP,107,57,54,10 |
911 | | CONTROL "T&hursday",IDC_CHECK_DAY4,"Button",BS_AUTOCHECKBOX | |
| 911 | CONTROL "T&hursday",IDC_CHECK_DAY4,"Button",BS_AUTOCHECKBOX | |
912 | 912 | WS_TABSTOP,165,57,45,10 |
913 | | CONTROL "F&riday",IDC_CHECK_DAY5,"Button",BS_AUTOCHECKBOX | |
| 913 | CONTROL "F&riday",IDC_CHECK_DAY5,"Button",BS_AUTOCHECKBOX | |
914 | 914 | WS_TABSTOP,15,73,35,10 |
915 | | CONTROL "&Saturday",IDC_CHECK_DAY6,"Button",BS_AUTOCHECKBOX | |
| 915 | CONTROL "&Saturday",IDC_CHECK_DAY6,"Button",BS_AUTOCHECKBOX | |
916 | 916 | WS_TABSTOP,61,73,44,10 |
917 | | CONTROL "S&unday",IDC_CHECK_DAY7,"Button",BS_AUTOCHECKBOX | |
| 917 | CONTROL "S&unday",IDC_CHECK_DAY7,"Button",BS_AUTOCHECKBOX | |
918 | 918 | WS_TABSTOP,107,73,40,10 |
919 | 919 | LTEXT "S&peed:",IDC_STATIC,7,99,24,8 |
920 | 920 | EDITTEXT IDC_SPEED,34,96,50,14,ES_AUTOHSCROLL | ES_NUMBER |
… |
… |
|
956 | 956 | END |
957 | 957 | |
958 | 958 | IDD_SITEMANAGER_ADVANCED DIALOGEX 0, 0, 239, 191 |
959 | | STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | |
| 959 | STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | |
960 | 960 | WS_SYSMENU |
961 | 961 | FONT 8, "MS Shell Dlg", 0, 0, 0x1 |
962 | 962 | BEGIN |
… |
… |
|
980 | 980 | EDITTEXT IDC_SITEMANAGER_ADVANCED_TZOFFSET,90,129,25,14, |
981 | 981 | ES_AUTOHSCROLL | ES_NUMBER |
982 | 982 | CONTROL "Spin1",IDC_SITEMANAGER_ADVANCED_TZSPIN,"msctls_updown32", |
983 | | UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY | |
| 983 | UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY | |
984 | 984 | UDS_ARROWKEYS | UDS_NOTHOUSANDS,103,127,11,14 |
985 | 985 | LTEXT "hours",IDC_STATIC,119,131,18,8 |
986 | 986 | EDITTEXT IDC_SITEMANAGER_ADVANCED_TZOFFSET2,141,128,25,14, |
987 | 987 | ES_AUTOHSCROLL | ES_NUMBER |
988 | 988 | CONTROL "Spin1",IDC_SITEMANAGER_ADVANCED_TZSPIN2,"msctls_updown32", |
989 | | UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY | |
| 989 | UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY | |
990 | 990 | UDS_ARROWKEYS | UDS_NOTHOUSANDS,151,126,11,14 |
991 | 991 | LTEXT "minutes",IDC_STATIC,170,130,25,8 |
992 | 992 | LTEXT "Use UTF8 on server if available:",IDC_STATIC,7,154,103, |
… |
… |
|
1029 | 1029 | CAPTION "FileZilla Options" |
1030 | 1030 | FONT 8, "MS Shell Dlg" |
1031 | 1031 | BEGIN |
1032 | | CONTROL "Tree1",IDC_PAGE_TREE,"SysTreeView32",TVS_HASBUTTONS | |
1033 | | TVS_HASLINES | TVS_LINESATROOT | TVS_DISABLEDRAGDROP | |
| 1032 | CONTROL "Tree1",IDC_PAGE_TREE,"SysTreeView32",TVS_HASBUTTONS | |
| 1033 | TVS_HASLINES | TVS_LINESATROOT | TVS_DISABLEDRAGDROP | |
1034 | 1034 | TVS_SHOWSELALWAYS | WS_BORDER | WS_TABSTOP,4,5,113,174 |
1035 | 1035 | CONTROL "",IDC_STATIC,"Static",SS_ETCHEDFRAME,4,187,113,66 |
1036 | 1036 | DEFPUSHBUTTON "OK",IDOK,12,194,97,14 |
… |
… |
|
1093 | 1093 | // |
1094 | 1094 | |
1095 | 1095 | #ifdef APSTUDIO_INVOKED |
1096 | | GUIDELINES DESIGNINFO |
| 1096 | GUIDELINES DESIGNINFO |
1097 | 1097 | BEGIN |
1098 | 1098 | IDD_MANUALTRANSFER, DIALOG |
1099 | 1099 | BEGIN |
… |
… |
|
1236 | 1236 | IDD_MANUALTRANSFER DLGINIT |
1237 | 1237 | BEGIN |
1238 | 1238 | IDC_MANUALTRANSFER_SERVERTYPE, 0x403, 4, 0 |
1239 | | 0x5446, 0x0050, |
| 1239 | 0x5446, 0x0050, |
1240 | 1240 | IDC_MANUALTRANSFER_SERVERTYPE, 0x403, 39, 0 |
1241 | | 0x5446, 0x2050, 0x766f, 0x7265, 0x5320, 0x4c53, 0x542f, 0x534c, 0x2820, |
1242 | | 0x6d69, 0x6c70, 0x6369, 0x7469, 0x6520, 0x636e, 0x7972, 0x7470, 0x6f69, |
1243 | | 0x296e, "\000" |
| 1241 | 0x5446, 0x2050, 0x766f, 0x7265, 0x5320, 0x4c53, 0x542f, 0x534c, 0x2820, |
| 1242 | 0x6d69, 0x6c70, 0x6369, 0x7469, 0x6520, 0x636e, 0x7972, 0x7470, 0x6f69, |
| 1243 | 0x296e, "\000" |
1244 | 1244 | IDC_MANUALTRANSFER_SERVERTYPE, 0x403, 35, 0 |
1245 | | 0x5446, 0x2050, 0x766f, 0x7265, 0x5320, 0x4c53, 0x2820, 0x7865, 0x6c70, |
1246 | | 0x6369, 0x7469, 0x6520, 0x636e, 0x7972, 0x7470, 0x6f69, 0x296e, "\000" |
| 1245 | 0x5446, 0x2050, 0x766f, 0x7265, 0x5320, 0x4c53, 0x2820, 0x7865, 0x6c70, |
| 1246 | 0x6369, 0x7469, 0x6520, 0x636e, 0x7972, 0x7470, 0x6f69, 0x296e, "\000" |
1247 | 1247 | IDC_MANUALTRANSFER_SERVERTYPE, 0x403, 16, 0 |
1248 | | 0x4653, 0x5054, 0x7520, 0x6973, 0x676e, 0x5320, 0x4853, 0x0032, |
| 1248 | 0x4653, 0x5054, 0x7520, 0x6973, 0x676e, 0x5320, 0x4853, 0x0032, |
1249 | 1249 | IDC_MANUALTRANSFER_SERVERTYPE, 0x403, 35, 0 |
1250 | | 0x5446, 0x2050, 0x766f, 0x7265, 0x5420, 0x534c, 0x2820, 0x7865, 0x6c70, |
1251 | | 0x6369, 0x7469, 0x6520, 0x636e, 0x7972, 0x7470, 0x6f69, 0x296e, "\000" |
| 1250 | 0x5446, 0x2050, 0x766f, 0x7265, 0x5420, 0x534c, 0x2820, 0x7865, 0x6c70, |
| 1251 | 0x6369, 0x7469, 0x6520, 0x636e, 0x7972, 0x7470, 0x6f69, 0x296e, "\000" |
1252 | 1252 | 0 |
1253 | 1253 | END |
1254 | 1254 | |
1255 | 1255 | IDD_OPTIONS_LOCALVIEW DLGINIT |
1256 | 1256 | BEGIN |
1257 | 1257 | IDC_OPTIONS_LOCALVIEW_STYLE, 0x403, 8, 0 |
1258 | | 0x6544, 0x6174, 0x6c69, 0x0073, |
| 1258 | 0x6544, 0x6174, 0x6c69, 0x0073, |
1259 | 1259 | IDC_OPTIONS_LOCALVIEW_STYLE, 0x403, 5, 0 |
1260 | | 0x694c, 0x7473, "\000" |
| 1260 | 0x694c, 0x7473, "\000" |
1261 | 1261 | IDC_OPTIONS_LOCALVIEW_STYLE, 0x403, 12, 0 |
1262 | | 0x614c, 0x6772, 0x2065, 0x6349, 0x6e6f, 0x0073, |
| 1262 | 0x614c, 0x6772, 0x2065, 0x6349, 0x6e6f, 0x0073, |
1263 | 1263 | IDC_OPTIONS_LOCALVIEW_STYLE, 0x403, 12, 0 |
1264 | | 0x6d53, 0x6c61, 0x206c, 0x6349, 0x6e6f, 0x0073, |
| 1264 | 0x6d53, 0x6c61, 0x206c, 0x6349, 0x6e6f, 0x0073, |
1265 | 1265 | IDC_OPTIONS_LOCALVIEW_SIZEFORMAT, 0x403, 5, 0 |
1266 | | 0x7541, 0x6f74, "\000" |
| 1266 | 0x7541, 0x6f74, "\000" |
1267 | 1267 | IDC_OPTIONS_LOCALVIEW_SIZEFORMAT, 0x403, 6, 0 |
1268 | | 0x7942, 0x6574, 0x0073, |
| 1268 | 0x7942, 0x6574, 0x0073, |
1269 | 1269 | IDC_OPTIONS_LOCALVIEW_SIZEFORMAT, 0x403, 3, 0 |
1270 | | 0x424b, "\000" |
| 1270 | 0x424b, "\000" |
1271 | 1271 | IDC_OPTIONS_LOCALVIEW_SIZEFORMAT, 0x403, 3, 0 |
1272 | | 0x424d, "\000" |
| 1272 | 0x424d, "\000" |
1273 | 1273 | 0 |
1274 | 1274 | END |
1275 | 1275 | |
1276 | 1276 | IDD_OPTIONS_REMOTEVIEW DLGINIT |
1277 | 1277 | BEGIN |
1278 | 1278 | IDC_OPTIONS_REMOTEVIEW_STYLE, 0x403, 8, 0 |
1279 | | 0x6544, 0x6174, 0x6c69, 0x0073, |
| 1279 | 0x6544, 0x6174, 0x6c69, 0x0073, |
1280 | 1280 | IDC_OPTIONS_REMOTEVIEW_STYLE, 0x403, 5, 0 |
1281 | | 0x694c, 0x7473, "\000" |
| 1281 | 0x694c, 0x7473, "\000" |
1282 | 1282 | IDC_OPTIONS_REMOTEVIEW_STYLE, 0x403, 12, 0 |
1283 | | 0x614c, 0x6772, 0x2065, 0x6349, 0x6e6f, 0x0073, |
| 1283 | 0x614c, 0x6772, 0x2065, 0x6349, 0x6e6f, 0x0073, |
1284 | 1284 | IDC_OPTIONS_REMOTEVIEW_STYLE, 0x403, 12, 0 |
1285 | | 0x6d53, 0x6c61, 0x206c, 0x6349, 0x6e6f, 0x0073, |
| 1285 | 0x6d53, 0x6c61, 0x206c, 0x6349, 0x6e6f, 0x0073, |
1286 | 1286 | IDC_OPTIONS_REMOTEVIEW_SIZEFORMAT, 0x403, 5, 0 |
1287 | | 0x7541, 0x6f74, "\000" |
| 1287 | 0x7541, 0x6f74, "\000" |
1288 | 1288 | IDC_OPTIONS_REMOTEVIEW_SIZEFORMAT, 0x403, 6, 0 |
1289 | | 0x7942, 0x6574, 0x0073, |
| 1289 | 0x7942, 0x6574, 0x0073, |
1290 | 1290 | IDC_OPTIONS_REMOTEVIEW_SIZEFORMAT, 0x403, 3, 0 |
1291 | | 0x424b, "\000" |
| 1291 | 0x424b, "\000" |
1292 | 1292 | IDC_OPTIONS_REMOTEVIEW_SIZEFORMAT, 0x403, 3, 0 |
1293 | | 0x424d, "\000" |
| 1293 | 0x424d, "\000" |
1294 | 1294 | 0 |
1295 | 1295 | END |
1296 | 1296 | |
1297 | 1297 | IDD_SITEMANAGER DLGINIT |
1298 | 1298 | BEGIN |
1299 | 1299 | IDC_SERVERTYPE, 0x403, 4, 0 |
1300 | | 0x5446, 0x0050, |
| 1300 | 0x5446, 0x0050, |
1301 | 1301 | IDC_SERVERTYPE, 0x403, 39, 0 |
1302 | | 0x5446, 0x2050, 0x766f, 0x7265, 0x5320, 0x4c53, 0x542f, 0x534c, 0x2820, |
1303 | | 0x6d69, 0x6c70, 0x6369, 0x7469, 0x6520, 0x636e, 0x7972, 0x7470, 0x6f69, |
1304 | | 0x296e, "\000" |
| 1302 | 0x5446, 0x2050, 0x766f, 0x7265, 0x5320, 0x4c53, 0x542f, 0x534c, 0x2820, |
| 1303 | 0x6d69, 0x6c70, 0x6369, 0x7469, 0x6520, 0x636e, 0x7972, 0x7470, 0x6f69, |
| 1304 | 0x296e, "\000" |
1305 | 1305 | IDC_SERVERTYPE, 0x403, 35, 0 |
1306 | | 0x5446, 0x2050, 0x766f, 0x7265, 0x5320, 0x4c53, 0x2820, 0x7865, 0x6c70, |
1307 | | 0x6369, 0x7469, 0x6520, 0x636e, 0x7972, 0x7470, 0x6f69, 0x296e, "\000" |
| 1306 | 0x5446, 0x2050, 0x766f, 0x7265, 0x5320, 0x4c53, 0x2820, 0x7865, 0x6c70, |
| 1307 | 0x6369, 0x7469, 0x6520, 0x636e, 0x7972, 0x7470, 0x6f69, 0x296e, "\000" |
1308 | 1308 | IDC_SERVERTYPE, 0x403, 16, 0 |
1309 | | 0x4653, 0x5054, 0x7520, 0x6973, 0x676e, 0x5320, 0x4853, 0x0032, |
| 1309 | 0x4653, 0x5054, 0x7520, 0x6973, 0x676e, 0x5320, 0x4853, 0x0032, |
1310 | 1310 | IDC_SERVERTYPE, 0x403, 35, 0 |
1311 | | 0x5446, 0x2050, 0x766f, 0x7265, 0x5420, 0x534c, 0x2820, 0x7865, 0x6c70, |
1312 | | 0x6369, 0x7469, 0x6520, 0x636e, 0x7972, 0x7470, 0x6f69, 0x296e, "\000" |
| 1311 | 0x5446, 0x2050, 0x766f, 0x7265, 0x5420, 0x534c, 0x2820, 0x7865, 0x6c70, |
| 1312 | 0x6369, 0x7469, 0x6520, 0x636e, 0x7972, 0x7470, 0x6f69, 0x296e, "\000" |
1313 | 1313 | 0 |
1314 | 1314 | END |
1315 | 1315 | |
1316 | 1316 | IDD_SITEMANAGER_ADVANCED DLGINIT |
1317 | 1317 | BEGIN |
1318 | 1318 | IDC_SITEMANAGER_ADVANCED_UTF8, 0x403, 5, 0 |
1319 | | 0x7541, 0x6f74, "\000" |
| 1319 | 0x7541, 0x6f74, "\000" |
1320 | 1320 | IDC_SITEMANAGER_ADVANCED_UTF8, 0x403, 6, 0 |
1321 | | 0x6f46, 0x6372, 0x0065, |
| 1321 | 0x6f46, 0x6372, 0x0065, |
1322 | 1322 | IDC_SITEMANAGER_ADVANCED_UTF8, 0x403, 6, 0 |
1323 | | 0x654e, 0x6576, 0x0072, |
| 1323 | 0x654e, 0x6576, 0x0072, |
1324 | 1324 | 0 |
1325 | 1325 | END |
1326 | 1326 | |
… |
… |
|
1331 | 1331 | // TEXTINCLUDE |
1332 | 1332 | // |
1333 | 1333 | |
1334 | | 1 TEXTINCLUDE |
| 1334 | 1 TEXTINCLUDE |
1335 | 1335 | BEGIN |
1336 | 1336 | "resource.h\0" |
1337 | 1337 | END |
1338 | 1338 | |
1339 | | 2 TEXTINCLUDE |
| 1339 | 2 TEXTINCLUDE |
1340 | 1340 | BEGIN |
1341 | 1341 | "#include ""afxres.h""\r\n" |
1342 | 1342 | "\0" |
1343 | 1343 | END |
1344 | 1344 | |
1345 | | 3 TEXTINCLUDE |
| 1345 | 3 TEXTINCLUDE |
1346 | 1346 | BEGIN |
1347 | 1347 | "#define _AFX_NO_OLE_RESOURCES\r\n" |
1348 | 1348 | "#define _AFX_NO_TRACKER_RESOURCES\r\n" |
… |
… |
|
1418 | 1418 | // Menu |
1419 | 1419 | // |
1420 | 1420 | |
1421 | | IDR_MAINFRAME MENU |
| 1421 | IDR_MAINFRAME MENU |
1422 | 1422 | BEGIN |
1423 | 1423 | POPUP "&File" |
1424 | 1424 | BEGIN |
… |
… |
|
1562 | 1562 | POPUP "&Server" |
1563 | 1563 | BEGIN |
1564 | 1564 | MENUITEM "&Change password...", ID_MENU_SERVER_CHANGEPASS |
1565 | | MENUITEM "&Enter raw FTP command...\tCtrl+F", |
| 1565 | MENUITEM "&Enter raw FTP command...\tCtrl+F", |
1566 | 1566 | ID_MENU_SERVER_ENTERRAWCOMMAND |
1567 | 1567 | |
1568 | 1568 | MENUITEM "Copy &URL to clipboard", ID_MENU_SERVER_COPYURLTOCLIPBOARD |
… |
… |
|
1578 | 1578 | END |
1579 | 1579 | END |
1580 | 1580 | |
1581 | | IDR_OUTPUTCONTEXT MENU |
| 1581 | IDR_OUTPUTCONTEXT MENU |
1582 | 1582 | BEGIN |
1583 | 1583 | POPUP "OutputContext" |
1584 | 1584 | BEGIN |
… |
… |
|
1591 | 1591 | END |
1592 | 1592 | END |
1593 | 1593 | |
1594 | | IDR_FTPCONTEXTMENU MENU |
| 1594 | IDR_FTPCONTEXTMENU MENU |
1595 | 1595 | BEGIN |
1596 | 1596 | POPUP "FtpContext" |
1597 | 1597 | BEGIN |
… |
… |
|
1608 | 1608 | END |
1609 | 1609 | END |
1610 | 1610 | |
1611 | | IDR_LOCALCONTEXTMENU MENU |
| 1611 | IDR_LOCALCONTEXTMENU MENU |
1612 | 1612 | BEGIN |
1613 | 1613 | POPUP "LocalContext" |
1614 | 1614 | BEGIN |
… |
… |
|
1627 | 1627 | END |
1628 | 1628 | END |
1629 | 1629 | |
1630 | | IDR_QUEUECONTEXTMENU MENU |
| 1630 | IDR_QUEUECONTEXTMENU MENU |
1631 | 1631 | BEGIN |
1632 | 1632 | POPUP "QueueContext" |
1633 | 1633 | BEGIN |
… |
… |
|
1647 | 1647 | END |
1648 | 1648 | END |
1649 | 1649 | |
1650 | | IDR_SITEMANAGER MENU |
| 1650 | IDR_SITEMANAGER MENU |
1651 | 1651 | BEGIN |
1652 | 1652 | POPUP "&File" |
1653 | 1653 | BEGIN |
… |
… |
|
1664 | 1664 | END |
1665 | 1665 | END |
1666 | 1666 | |
1667 | | IDR_LOCALTREECONTEXTMENU MENU |
| 1667 | IDR_LOCALTREECONTEXTMENU MENU |
1668 | 1668 | BEGIN |
1669 | 1669 | POPUP "LocalTreeContext" |
1670 | 1670 | BEGIN |
… |
… |
|
1678 | 1678 | END |
1679 | 1679 | END |
1680 | 1680 | |
1681 | | IDR_SYSTRAY_MENU MENU |
| 1681 | IDR_SYSTRAY_MENU MENU |
1682 | 1682 | BEGIN |
1683 | 1683 | POPUP "POPUP" |
1684 | 1684 | BEGIN |
… |
… |
|
1694 | 1694 | // Accelerator |
1695 | 1695 | // |
1696 | 1696 | |
1697 | | IDR_MAINFRAME ACCELERATORS |
| 1697 | IDR_MAINFRAME ACCELERATORS |
1698 | 1698 | BEGIN |
1699 | 1699 | "D", ID_TOOLBAR_DISCONNECT, VIRTKEY, CONTROL, NOINVERT |
1700 | | "F", ID_MENU_SERVER_ENTERRAWCOMMAND, VIRTKEY, CONTROL, |
| 1700 | "F", ID_MENU_SERVER_ENTERRAWCOMMAND, VIRTKEY, CONTROL, |
1701 | 1701 | NOINVERT |
1702 | 1702 | "Q", IDOK, VIRTKEY, CONTROL, NOINVERT |
1703 | 1703 | "R", ID_TOOLBAR_RECONNECT, VIRTKEY, CONTROL, NOINVERT |
… |
… |
|
1759 | 1759 | // String Table |
1760 | 1760 | // |
1761 | 1761 | |
1762 | | STRINGTABLE |
| 1762 | STRINGTABLE |
1763 | 1763 | BEGIN |
1764 | 1764 | AFX_IDS_APP_TITLE "FileZilla" |
1765 | 1765 | AFX_IDS_IDLEMESSAGE "Ready" |
1766 | 1766 | END |
1767 | 1767 | |
1768 | | STRINGTABLE |
| 1768 | STRINGTABLE |
1769 | 1769 | BEGIN |
1770 | 1770 | ID_APP_ABOUT "About FileZilla" |
1771 | 1771 | ID_APP_EXIT "Quit FileZilla" |
1772 | 1772 | ID_HELP "Displays the contents of the help" |
1773 | 1773 | END |
1774 | 1774 | |
1775 | | STRINGTABLE |
| 1775 | STRINGTABLE |
1776 | 1776 | BEGIN |
1777 | 1777 | ID_VIEW_TOOLBAR "Show or hide the toolbar" |
1778 | 1778 | ID_VIEW_STATUS_BAR "Show or hide the status bar" |
1779 | 1779 | END |
1780 | 1780 | |
1781 | | STRINGTABLE |
| 1781 | STRINGTABLE |
1782 | 1782 | BEGIN |
1783 | 1783 | AFX_IDS_SCCLOSE "Quit FileZilla" |
1784 | 1784 | END |
1785 | 1785 | |
1786 | | STRINGTABLE |
| 1786 | STRINGTABLE |
1787 | 1787 | BEGIN |
1788 | 1788 | IDP_SOCKETS_INIT_FAILED "Sockets initialization failed" |
1789 | 1789 | IDS_BROWSEFORFOLDER "Please select local folder." |
… |
… |
|
1795 | 1795 | IDS_CERT_ERR_CERT_UNTRUSTED "Certificate not trusted." |
1796 | 1796 | END |
1797 | 1797 | |
1798 | | STRINGTABLE |
| 1798 | STRINGTABLE |
1799 | 1799 | BEGIN |
1800 | 1800 | IDS_REMOTELIST_EMPTY "<Empty directory listing>" |
1801 | 1801 | IDS_SITEMANAGER_NEWFOLDER "New folder" |
… |
… |
|
1815 | 1815 | IDS_TITLE_CONNECTING "Connecting to %s" |
1816 | 1816 | END |
1817 | 1817 | |
1818 | | STRINGTABLE |
| 1818 | STRINGTABLE |
1819 | 1819 | BEGIN |
1820 | 1820 | IDS_TOOLBAR_SITEDROPDOWN_EMPTYFOLDER "Empty folder" |
1821 | 1821 | IDS_VIEWLABEL_LOCAL "Local Site:" |
… |
… |
|
1824 | 1824 | IDS_DIRINFO_FILES "%d files with %I64d bytes." |
1825 | 1825 | IDS_DIRINFO_DIRSANDFILES "%d folders and %d files with %I64d bytes." |
1826 | 1826 | IDS_DIRINFO_FILESMIN "%d files with at least %I64d bytes." |
1827 | | IDS_DIRINFO_DIRSANDFILESMIN |
| 1827 | IDS_DIRINFO_DIRSANDFILESMIN |
1828 | 1828 | "%d folders and %d files with at least %I64d bytes." |
1829 | 1829 | IDS_DIRINFO_SELECTED_FILES "Selected %d files with %I64d bytes." |
1830 | 1830 | IDS_DIRINFO_SELECTED_DIRS "Selected %d folders." |
1831 | | IDS_DIRINFO_SELECTED_DIRSANDFILES |
| 1831 | IDS_DIRINFO_SELECTED_DIRSANDFILES |
1832 | 1832 | "Selected %d folders and %d files with %I64d bytes." |
1833 | | IDS_DIRINFO_SELECTED_FILESMIN |
| 1833 | IDS_DIRINFO_SELECTED_FILESMIN |
1834 | 1834 | "Selected %d files with at least %I64d bytes." |
1835 | | IDS_DIRINFO_SELECTED_DIRSANDFILESMIN |
| 1835 | IDS_DIRINFO_SELECTED_DIRSANDFILESMIN |
1836 | 1836 | "Selected %d folders and %d files with at least %I64d bytes" |
1837 | 1837 | IDS_DIRINFO_FILE "1 file with %I64d bytes." |
1838 | 1838 | IDS_DIRINFO_DIR "1 folder." |
1839 | 1839 | IDS_DIRINFO_DIRANDFILES "1 folder and %d files with %I64d bytes." |
1840 | 1840 | END |
1841 | 1841 | |
1842 | | STRINGTABLE |
| 1842 | STRINGTABLE |
1843 | 1843 | BEGIN |
1844 | | IDS_CHANGEDIALOG_DIRECTORY |
| 1844 | IDS_CHANGEDIALOG_DIRECTORY |
1845 | 1845 | "Please select the new attributes for the directory ""%s""" |
1846 | 1846 | IDS_CHANGEDIALOG_FILE "Please select the new attributes for the file ""%s""" |
1847 | | IDS_CHANGEDIALOG_MULTIPLEFILES |
| 1847 | IDS_CHANGEDIALOG_MULTIPLEFILES |
1848 | 1848 | "Please select the new attributes for all selected files and folders" |
1849 | 1849 | IDS_HEADER_DATE "Date" |
1850 | 1850 | IDS_HEADER_DIRECTION "Direction" |
… |
… |
|
1861 | 1861 | IDS_HEADER_STATUS "Status" |
1862 | 1862 | END |
1863 | 1863 | |
1864 | | STRINGTABLE |
| 1864 | STRINGTABLE |
1865 | 1865 | BEGIN |
1866 | 1866 | IDS_HEADER_TIME "Time" |
1867 | 1867 | IDS_MANUALTRANSFER_HOST "Please enter a valid host" |
1868 | | IDS_MANUALTRANSFER_LOCALFILE |
| 1868 | IDS_MANUALTRANSFER_LOCALFILE |
1869 | 1869 | "Please enter the path and name of the local file" |
1870 | 1870 | IDS_MANUALTRANSFER_PORT "Please enter a valid server port" |
1871 | | IDS_MANUALTRANSFER_REMOTEFILE |
| 1871 | IDS_MANUALTRANSFER_REMOTEFILE |
1872 | 1872 | "Please enter the path and name of the remote file" |
1873 | 1873 | IDS_MANUALTRANSFER_USER "Please enter a username" |
1874 | 1874 | IDS_QUEUESTATUS_ABORTED "Transfer aborted" |
… |
… |
|
1883 | 1883 | IDS_QUICKCONN_USER "User:" |
1884 | 1884 | END |
1885 | 1885 | |
1886 | | STRINGTABLE |
| 1886 | STRINGTABLE |
1887 | 1887 | BEGIN |
1888 | 1888 | IDS_ERRORMSG_INTERRUPTED "Interrupted by user!" |
1889 | 1889 | IDS_ERRORMSG_INVALIDPORT "You have to specify a valid port!" |
1890 | | IDS_ERRORMSG_LANGUAGEDLLNOTFOUND |
| 1890 | IDS_ERRORMSG_LANGUAGEDLLNOTFOUND |
1891 | 1891 | "Error! The language DLL for the language ""%s"" could not be found!" |
1892 | | IDS_ERRORMSG_LANGUAGEDLLVERSIONINVALID |
| 1892 | IDS_ERRORMSG_LANGUAGEDLLVERSIONINVALID |
1893 | 1893 | "Error! The language DLL was written for an older version of FileZilla and is not compatible with this version.\nPlease download a newer version of this language DLL from http://sourceforge.net/projects/filezilla" |
1894 | 1894 | IDS_ERRORMSG_NAMEINUSE "Please enter a different filename!" |
1895 | 1895 | IDS_ERRORMSG_PATHNOTFOUND "The path you entered could not be found!" |
… |
… |
|
1897 | 1897 | IDS_ERRORMSG_PREFIX "Error:" |
1898 | 1898 | IDS_ERRORMSG_PROXY_AUTHFAILED "Authentication failed" |
1899 | 1899 | IDS_ERRORMSG_PROXY_AUTHNOLOGON "Proxy requires authentication" |
1900 | | IDS_ERRORMSG_PROXY_AUTHTYPEUNKNOWN |
| 1900 | IDS_ERRORMSG_PROXY_AUTHTYPEUNKNOWN |
1901 | 1901 | "Required authtype reported by proxy server is unknown or not supported" |
1902 | 1902 | IDS_ERRORMSG_PROXY_CANTRESOLVEHOST "Can't resolve host of proxy server" |
1903 | 1903 | IDS_ERRORMSG_PROXY_NOCONN "Can't connect to proxy server" |
1904 | | IDS_ERRORMSG_PROXY_REQUESTFAILED |
| 1904 | IDS_ERRORMSG_PROXY_REQUESTFAILED |
1905 | 1905 | "Proxy request failed, can't connect through proxy server" |
1906 | | IDS_ERRORMSG_SETTINGS_XMLFILE_INVALID |
| 1906 | IDS_ERRORMSG_SETTINGS_XMLFILE_INVALID |
1907 | 1907 | "Error, can't parse 'FileZilla.xml', the file may be corrupt.\nFor this session, the registry will be used to store the settings." |
1908 | | IDS_ERRORMSG_SFTP_CANTCREATESFTPIPC |
| 1908 | IDS_ERRORMSG_SFTP_CANTCREATESFTPIPC |
1909 | 1909 | "Can't initialize CSFtpIpC. Please make sure that enough system resources are available!" |
1910 | 1910 | END |
1911 | 1911 | |
1912 | | STRINGTABLE |
| 1912 | STRINGTABLE |
1913 | 1913 | BEGIN |
1914 | | IDS_ERRORMSG_SFTP_CANTCREATESFTPPROCESS |
| 1914 | IDS_ERRORMSG_SFTP_CANTCREATESFTPPROCESS |
1915 | 1915 | "Can't start SFTP process. Please ensure that the file 'FzSFtp.exe' is in the same folder as 'FileZilla.exe'" |
1916 | 1916 | IDS_ERRORMSG_SFTP_CLOSED "FzSFtp.exe was closed, terminating connection." |
1917 | | IDS_ERRORMSG_SFTP_INVALIDDATA |
| 1917 | IDS_ERRORMSG_SFTP_INVALIDDATA |
1918 | 1918 | "Invalid data was found in the SFtp data channel, terminating connection." |
1919 | | IDS_ERRORMSG_SFTP_NORESPONSE |
| 1919 | IDS_ERRORMSG_SFTP_NORESPONSE |
1920 | 1920 | "FzSFtp.exe did not respond, terminating connection." |
1921 | | IDS_ERRORMSG_SITEMANAGERNAMEINUSE |
| 1921 | IDS_ERRORMSG_SITEMANAGERNAMEINUSE |
1922 | 1922 | "That name already exists! Please choose a different one!" |
1923 | 1923 | IDS_ERRORMSG_SITEMANAGERNEEDLOGONTYPE "Please select the logon type!" |
1924 | 1924 | IDS_ERRORMSG_SITEMANAGERNEEDNAME "Please enter a name for the FTP Site!" |
… |
… |
|
1927 | 1927 | IDS_ERRORMSG_TIMEOUT "Timeout detected!" |
1928 | 1928 | IDS_ERRORMSG_UPLOADABORTED "Upload aborted" |
1929 | 1929 | IDS_ERRORMSG_UPLOADFAILED "Upload failed" |
1930 | | IDS_ERRORMSG_URLSYNTAXINVALID |
| 1930 | IDS_ERRORMSG_URLSYNTAXINVALID |
1931 | 1931 | "Invalid address syntax. Should be [ftp://][User:Pass@]Host[:Port][/Path]\nParameters surrounded by [ ] are optional.\r\nsftp:// and ftps:// are also valid protocols." |
1932 | 1932 | IDS_ERRORMSG_VIEWEDIT_CANTOPENFILE "Unable to open ""%s""" |
1933 | | IDS_ERRORMSG_VIEWEDIT_CANTSTARTPROGRAM |
| 1933 | IDS_ERRORMSG_VIEWEDIT_CANTSTARTPROGRAM |
1934 | 1934 | "Unable to start ""%s"" to view / edit ""%s"". Please check your file associations." |
1935 | 1935 | IDS_ERRORMSG_VIEWEDIT_NODEFPROG "Error, no default program specified" |
1936 | 1936 | END |
1937 | 1937 | |
1938 | | STRINGTABLE |
| 1938 | STRINGTABLE |
1939 | 1939 | BEGIN |
1940 | | IDS_ERRORMSG_CANTOPENTRANSFERCHANNEL |
| 1940 | IDS_ERRORMSG_CANTOPENTRANSFERCHANNEL |
1941 | 1941 | "Transfer channel can't be opened. Reason: %s" |
1942 | 1942 | IDS_ERRORMSG_CANTPARSECMDLINE "Can't parse command line." |
1943 | 1943 | IDS_ERRORMSG_CANTRESOLVEHOST "Can't resolve host name" |
1944 | 1944 | IDS_ERRORMSG_CANTRESUME "Resume command not supported by server, overwriting file." |
1945 | | IDS_ERRORMSG_CANTRESUME_FINISH |
| 1945 | IDS_ERRORMSG_CANTRESUME_FINISH |
1946 | 1946 | "Resume command not supported by server, but local and remote filesize are equal." |
1947 | 1947 | IDS_ERRORMSG_CANTSENDCOMMAND "Unable to send command! Logging off server!" |
1948 | | IDS_ERRORMSG_CANTWRITETOFILE |
| 1948 | IDS_ERRORMSG_CANTWRITETOFILE |
1949 | 1949 | "Can't write into the file ""%s"". Reason: %s" |
1950 | 1950 | IDS_ERRORMSG_CERTREJECTED "Peer certificate rejected" |
1951 | | IDS_ERRORMSG_CRITICALINTERRUPTED |
| 1951 | IDS_ERRORMSG_CRITICALINTERRUPTED |
1952 | 1952 | "Interrupted by user! Logging off server.." |
1953 | 1953 | IDS_ERRORMSG_DOWNLOADABORTED "Download aborted" |
1954 | 1954 | IDS_ERRORMSG_DOWNLOADFAILED "Download failed" |
1955 | 1955 | IDS_ERRORMSG_ENTERSTRING "You have to enter a string!" |
1956 | | IDS_ERRORMSG_FILENAMEINVALID |
| 1956 | IDS_ERRORMSG_FILENAMEINVALID |
1957 | 1957 | "A filename can't contain one of the following characters:\n/ \\ : * ? "" < > |" |
1958 | 1958 | IDS_ERRORMSG_FILEOPENFAILED "Could not open the local file %s" |
1959 | 1959 | IDS_ERRORMSG_HOSTNEEDED "Please enter a host!" |
1960 | 1960 | IDS_ERRORMSG_IDENT_CANTSTART "Error starting Ident server" |
1961 | 1961 | END |
1962 | 1962 | |
1963 | | STRINGTABLE |
| 1963 | STRINGTABLE |
1964 | 1964 | BEGIN |
1965 | 1965 | ID_INDICATOR_SECURESERVER " " |
1966 | 1966 | ID_INDICATOR_ELAPSEDTIME " " |
1967 | 1967 | ID_INDICATOR_TIMELEFT " " |
1968 | | ID_INDICATOR_PROGRESS_PANE |
| 1968 | ID_INDICATOR_PROGRESS_PANE |
1969 | 1969 | " " |
1970 | 1970 | ID_INDICATOR_BYTES " " |
1971 | 1971 | ID_INDICATOR_QUEUESIZE "Queue: %I64d %s" |
1972 | 1972 | END |
1973 | 1973 | |
1974 | | STRINGTABLE |
| 1974 | STRINGTABLE |
1975 | 1975 | BEGIN |
1976 | 1976 | ID_INDICATOR_RECVLED " " |
1977 | 1977 | ID_INDICATOR_SENDLED " " |
1978 | 1978 | IDS_DIRINFO_DIRS "%d folders." |
1979 | 1979 | END |
1980 | 1980 | |
1981 | | STRINGTABLE |
| 1981 | STRINGTABLE |
1982 | 1982 | BEGIN |
1983 | 1983 | IDS_INPUTDIALOGTITLE_CREATEDIR "Enter directory name" |
1984 | | IDS_INPUTDIALOGTEXT_CREATEDIR |
| 1984 | IDS_INPUTDIALOGTEXT_CREATEDIR |
1985 | 1985 | "Please enter the name of the new directory:" |
1986 | 1986 | IDS_INPUTDIALOGTITLE_FTPCOMMAND "Enter FTP command" |
1987 | | IDS_INPUTDIALOGTEXT_FTPCOMMAND |
| 1987 | IDS_INPUTDIALOGTEXT_FTPCOMMAND |
1988 | 1988 | "Please enter the command that will be executed on the server:" |
1989 | 1989 | END |
1990 | 1990 | |
1991 | | STRINGTABLE |
| 1991 | STRINGTABLE |
1992 | 1992 | BEGIN |
1993 | 1993 | IDS_INPUTDIALOGTITLE_INPUTPASSWORD "Enter your password" |
1994 | | IDS_INPUTDIALOGTEXT_INPUTPASSWORD |
| 1994 | IDS_INPUTDIALOGTEXT_INPUTPASSWORD |
1995 | 1995 | "Please enter the password that will be used to connect to the server:" |
1996 | 1996 | IDS_INPUTDIALOGTITLE_RENAME "Enter new filename" |
1997 | | IDS_INPUTDIALOGTEXT_RENAME |
| 1997 | IDS_INPUTDIALOGTEXT_RENAME |
1998 | 1998 | "Please enter the name under which the file will be stored:" |
1999 | | IDS_INPUTDIALOGTITLE_KEYBOARDINTERACTIVE |
| 1999 | IDS_INPUTDIALOGTITLE_KEYBOARDINTERACTIVE |
2000 | 2000 | "Keyboard-interactive authentication" |
2001 | 2001 | IDS_INPUTDIALOGTITLE_INPUTUSER "Enter your username" |
2002 | | IDS_INPUTDIALOGTEXT_INPUTUSER |
| 2002 | IDS_INPUTDIALOGTEXT_INPUTUSER |
2003 | 2003 | "Please enter the username that will be used to connect to the server:" |
2004 | 2004 | END |
2005 | 2005 | |
2006 | | STRINGTABLE |
| 2006 | STRINGTABLE |
2007 | 2007 | BEGIN |
2008 | 2008 | IDS_OPTIONSPAGE_CONNECTION "Connection" |
2009 | 2009 | IDS_OPTIONSPAGE_DEBUG "Debug" |
… |
… |
|
2023 | 2023 | IDS_OPTIONSPAGE_TYPE "ASCII/Binary" |
2024 | 2024 | END |
2025 | 2025 | |
2026 | | STRINGTABLE |
| 2026 | STRINGTABLE |
2027 | 2027 | BEGIN |
2028 | 2028 | IDS_OPTIONSPAGE_VIEWEDIT "File viewing / editing" |
2029 | 2029 | IDS_OPTIONSPAGE_SSH "SFTP settings" |
… |
… |
|
2032 | 2032 | IDS_OPTIONSPAGE_TRANSFER_COMPRESSION "Compression" |
2033 | 2033 | END |
2034 | 2034 | |
2035 | | STRINGTABLE |
| 2035 | STRINGTABLE |
2036 | 2036 | BEGIN |
2037 | 2037 | IDS_COMMANDMSG_PREFIX "Command:" |
2038 | 2038 | END |
2039 | 2039 | |
2040 | | STRINGTABLE |
| 2040 | STRINGTABLE |
2041 | 2041 | BEGIN |
2042 | 2042 | IDS_RESPONSEMSG_PREFIX "Response:" |
2043 | 2043 | IDS_TRACEMSG_TRACE "Trace:" |
2044 | 2044 | END |
2045 | 2045 | |
2046 | | STRINGTABLE |
| 2046 | STRINGTABLE |
2047 | 2047 | BEGIN |
2048 | 2048 | IDS_ERRORMSG_CANTCONNECT "Unable to connect!" |
2049 | | IDS_ERRORMSG_CANTCREATEDUETOPORTRANGE |
| 2049 | IDS_ERRORMSG_CANTCREATEDUETOPORTRANGE |
2050 | 2050 | "Could not create socket in the specified port range." |
2051 | 2051 | IDS_ERRORMSG_CANTCREATEFILE "Failed to create the output file!" |
2052 | 2052 | IDS_ERRORMSG_CANTESTABLISHSSLCONNECTION "Can't establish SSL connection" |
… |
… |
|
2055 | 2055 | IDS_ERRORMSG_CANTGETRESPONSE "Can't receive response!" |
2056 | 2056 | IDS_ERRORMSG_CANTIMPORTFILE "Error importing the file!" |
2057 | 2057 | IDS_ERRORMSG_CANTINITSSL "Can't initialize SSL library" |
2058 | | IDS_ERRORMSG_CANTLOADSSLDLLS |
| 2058 | IDS_ERRORMSG_CANTLOADSSLDLLS |
2059 | 2059 | "Can't load SSL libraries. Please make sure the files ""ssleay32.dll"" and ""libeay32.dll"" are in the same folder as FileZilla." |
2060 | 2060 | IDS_ERRORMSG_CANTOPENFILE "Can't open the input file!" |
2061 | | IDS_ERRORMSG_CANTOPENLOGFILE |
| 2061 | IDS_ERRORMSG_CANTOPENLOGFILE |
2062 | 2062 | "The log file ""%s"" can't be opened. Logging to file will be disabled for this session." |
2063 | 2063 | END |
2064 | 2064 | |
2065 | | STRINGTABLE |
| 2065 | STRINGTABLE |
2066 | 2066 | BEGIN |
2067 | 2067 | IDS_STATUSMSG_CONNECTED "Connected" |
2068 | | IDS_STATUSMSG_CONNECTEDWITH |
| 2068 | IDS_STATUSMSG_CONNECTEDWITH |
2069 | 2069 | "Connected with %s. Waiting for welcome message..." |
2070 | | IDS_STATUSMSG_CONNECTEDWITHSFTP |
| 2070 | IDS_STATUSMSG_CONNECTEDWITHSFTP |
2071 | 2071 | "Connected with %s, initializing SFTP connection..." |
2072 | | IDS_STATUSMSG_CONNECTEDWITHSSL |
| 2072 | IDS_STATUSMSG_CONNECTEDWITHSSL |
2073 | 2073 | "Connected with %s, negotiating SSL connection..." |
2074 | 2074 | IDS_STATUSMSG_CONNECTING "Connecting to %s ..." |
2075 | 2075 | IDS_STATUSMSG_DIRLISTSUCCESSFUL "Directory listing successful" |
… |
… |
|
2082 | 2082 | IDS_STATUSMSG_IDENT_REQUEST "Ident request from: %s" |
2083 | 2083 | IDS_STATUSMSG_IDENT_START "Ident server started" |
2084 | 2084 | IDS_STATUSMSG_IDENT_STOP "Ident server stopped" |
2085 | | IDS_STATUSMSG_LANGUAGEVERSIONDIFFERENT |
| 2085 | IDS_STATUSMSG_LANGUAGEVERSIONDIFFERENT |
2086 | 2086 | "Warning! The language DLL was written for a previous version of FileZilla. Some strings may not be translated. Please download a newer version of the language DLL!" |
2087 | 2087 | END |
2088 | 2088 | |
2089 | | STRINGTABLE |
| 2089 | STRINGTABLE |
2090 | 2090 | BEGIN |
2091 | 2091 | IDS_STATUSMSG_PREFIX "Status:" |
2092 | 2092 | IDS_STATUSMSG_RECONNECTWAIT "Waiting to reconnect..." |
2093 | 2093 | IDS_STATUSMSG_RETRIEVINGDIRLIST "Retrieving directory listing..." |
2094 | | IDS_STATUSMSG_SSLESTABLISHED |
| 2094 | IDS_STATUSMSG_SSLESTABLISHED |
2095 | 2095 | "SSL connection established. Waiting for welcome message..." |
2096 | 2096 | IDS_STATUSMSG_SSLESTABLISHEDTRANSFER "SSL connection established" |
2097 | 2097 | IDS_STATUSMSG_UPLOADSTART "Starting upload of %s" |
… |
… |
|
2100 | 2100 | IDS_STATUSMSG_WAITINGTORETRY_LEFT "Waiting to retry... (%d retries left)" |
2101 | 2101 | END |
2102 | 2102 | |
2103 | | STRINGTABLE |
| 2103 | STRINGTABLE |
2104 | 2104 | BEGIN |
2105 | 2105 | IDS_QUESTION_BREAKCONNECTION "Break current connection?" |
2106 | 2106 | IDS_QUESTION_CANCELOPERATION "Really cancel current operation?" |
… |
… |
|
2109 | 2109 | IDS_QUESTION_DELETEFILES "Really delete %d files?" |
2110 | 2110 | IDS_QUESTION_DELETEFILESANDDIRS "Really delete %d files and directories?" |
2111 | 2111 | IDS_QUESTION_FILEEXISTS "The file ""%s"" (%d bytes) already exists. Overwrite with ""%s"" (%d bytes)?" |
2112 | | IDS_QUESTION_OPTIONS_FIRSTSTART |
| 2112 | IDS_QUESTION_OPTIONS_FIRSTSTART |
2113 | 2113 | "You are starting this version of FileZilla for the first time or your settings got deleted.\nFileZilla can store its settings in the registry or in an XML file.\nDo you want FileZilla to use the registry?\nIt is recommended to use the registry if you are in a multi-user environment\nSelect 'No' to use the XML file, which is recommended for most users.\nIf you chose no and there are settings in the registry, they will be imported into the XML file.\n\nDo you want to use the registry instead of an XML file?" |
2114 | | IDS_QUESTION_SFTP_CHANGEDHOSTKEY |
| 2114 | IDS_QUESTION_SFTP_CHANGEDHOSTKEY |
2115 | 2115 | "WARNING - POTENTIAL SECURITY BREACH!\nThe server's host key does not match the one previously\ncached in the registry. This means that either the\nserver administrator has changed the host key, or you\nhave actually connected to another computer pretending\nto be the server.\nThe new key fingerprint is:\n%s\nIf you were expecting this change and trust the new key,\nselect 'Yes' to update the cache and continue connecting.\nIf you want to carry on connecting but without updating\nthe cache, select 'No'.\nIf you want to abandon the connection completely, click on\n'Cancel'. Selecting 'Cancel' is the ONLY guaranteed\nsafe choice.\nUpdate cached key?" |
2116 | | IDS_QUESTION_SFTP_NEWHOSTKEY |
| 2116 | IDS_QUESTION_SFTP_NEWHOSTKEY |
2117 | 2117 | "The server's host key is not cached in the registry. You\nhave no guarantee that the server is the computer you\nthink it is.\n\nThe server's key fingerprint is:\n%s\n\nIf you trust this host, select 'Yes' to add the key to\nthe cache and carry on connecting.\nIf you want to carry on connecting just once, without\nadding the key to the cache, select 'No'.\nIf you do not trust this host, select 'Cancel' to abandon the\nconnection.\n\nStore key in cache?" |
2118 | 2118 | IDS_QUESTION_SITEMANAGERDELETE "Really delete ""%s""?" |
2119 | | IDS_QUESTION_TRANSFER_USEPRIMARY |
| 2119 | IDS_QUESTION_TRANSFER_USEPRIMARY |
2120 | 2120 | "Problem while transferring '%s'\nNo additional connection can be established to the server for the file transfer. Your server may not support multilple connections.\nShould FileZilla use the primary connection for the transfer since you are already connected to this server?" |
2121 | | IDS_QUESTION_VIEWEDIT_MODIFIED |
| 2121 | IDS_QUESTION_VIEWEDIT_MODIFIED |
2122 | 2122 | """%s"" has been modified.\nDo you want to upload it back to the server?" |
2123 | 2123 | IDS_QUESTION_VIEWEDIT_MODIFIED_CAPTION "File has been modified" |
2124 | 2124 | END |
2125 | 2125 | |
2126 | | STRINGTABLE |
| 2126 | STRINGTABLE |
2127 | 2127 | BEGIN |
2128 | 2128 | IDS_OPTIONS_EXPORTOK "The settings have been successfully exported. \nIf you put the created .xml file into the same folder as FileZilla under the name 'filezilla.xml', it will be used directly to store the settings instead of the registry." |
2129 | 2129 | IDS_OPTIONS_IDENTSYSTEM "Please enter an operating system ID !" |
2130 | 2130 | IDS_OPTIONS_IDENTUSERID "Please enter a UserID !" |
2131 | 2131 | IDS_OPTIONS_IMPORTFAILURE "Error! Failed to import settings from '%s'" |
2132 | 2132 | IDS_OPTIONS_IMPORTOK "The settings have been successfully imported." |
2133 | | IDS_OPTIONS_KEEPALIVEBORDERDIFF |
| 2133 | IDS_OPTIONS_KEEPALIVEBORDERDIFF |
2134 | 2134 | "The upper border of the Keep Alive interval must be higher than the lower border!" |
2135 | | IDS_OPTIONS_KEEPALIVEBORDERHIGH |
| 2135 | IDS_OPTIONS_KEEPALIVEBORDERHIGH |
2136 | 2136 | "The upper border of the Keep Alive interval must be between %d and %d seconds!" |
2137 | | IDS_OPTIONS_KEEPALIVEBORDERLOW |
| 2137 | IDS_OPTIONS_KEEPALIVEBORDERLOW |
2138 | 2138 | "The lower border of the Keep Alive interval must be between %d and %d seconds!" |
2139 | | IDS_OPTIONS_LIMITPORTRANGEDIFF |
| 2139 | IDS_OPTIONS_LIMITPORTRANGEDIFF |
2140 | 2140 | "The upper border of the port range must be higher than the lower border!" |
2141 | | IDS_OPTIONS_LIMITPORTRANGEHIGH |
| 2141 | IDS_OPTIONS_LIMITPORTRANGEHIGH |
2142 | 2142 | "The upper border of the port range must be between %d and %d!" |
2143 | | IDS_OPTIONS_LIMITPORTRANGELOW |
| 2143 | IDS_OPTIONS_LIMITPORTRANGELOW |
2144 | 2144 | "The lower border of the port range must be between %d and %d!" |
2145 | 2145 | IDS_OPTIONS_NUMRETRIES "Please enter a value between %d and %d for the maximum number of retries!" |
2146 | 2146 | END |
2147 | 2147 | |
2148 | | STRINGTABLE |
| 2148 | STRINGTABLE |
2149 | 2149 | BEGIN |
2150 | 2150 | IDS_OPTIONS_PROXYHOST "Please enter a host for the proxy!" |
2151 | 2151 | IDS_OPTIONS_PROXYPORT "Please enter a valid port for the proxy!" |
… |
… |
|
2153 | 2153 | IDS_OPTIONS_TIMEOUT "Please enter a value between %d and %d for the timeout detection" |
2154 | 2154 | END |
2155 | 2155 | |
2156 | | STRINGTABLE |
| 2156 | STRINGTABLE |
2157 | 2157 | BEGIN |
2158 | 2158 | IDS_GSSERROR_AUTHFAILED "Authentication failed, often this means that\nyou do not have a Kerberos version 5 ticket.\nConsider running Leash32 first.\nDo you wish to send all data in the clear,\nand potentially expose your password to hundreds\nof people?" |
2159 | 2159 | IDS_GSSERROR_CANTLOADDLL "Can't find or load %s" |
2160 | | IDS_GSSERROR_CANTLOADGSSAPI |
| 2160 | IDS_GSSERROR_CANTLOADGSSAPI |
2161 | 2161 | "One or more of the GSS-API's haven't been loaded!" |
2162 | | IDS_GSSERROR_CANTLOADKERBEROSAPI |
| 2162 | IDS_GSSERROR_CANTLOADKERBEROSAPI |
2163 | 2163 | "The following API's couldn't be loaded from Kerberos 5 DLL!" |
2164 | 2164 | END |
2165 | 2165 | |
2166 | | STRINGTABLE |
| 2166 | STRINGTABLE |
2167 | 2167 | BEGIN |
2168 | 2168 | IDS_CERT_ERR_DEPTH_ZERO_SELF_SIGNED_CERT "Self signed certificate." |
2169 | | IDS_CERT_ERR_ERROR_IN_CERT_NOT_AFTER_FIELD |
| 2169 | IDS_CERT_ERR_ERROR_IN_CERT_NOT_AFTER_FIELD |
2170 | 2170 | "Format error in certificate's valid until field." |
2171 | | IDS_CERT_ERR_ERROR_IN_CERT_NOT_BEFORE_FIELD |
| 2171 | IDS_CERT_ERR_ERROR_IN_CERT_NOT_BEFORE_FIELD |
2172 | 2172 | "Format error in certificate's valid fom field." |
2173 | 2173 | IDS_CERT_ERR_INVALID_CA "Invalid CA certificate." |
2174 | 2174 | IDS_CERT_ERR_INVALID_PURPOSE "Unsupported certificate purpose." |
2175 | | IDS_CERT_ERR_KEYUSAGE_NO_CERTSIGN |
| 2175 | IDS_CERT_ERR_KEYUSAGE_NO_CERTSIGN |
2176 | 2176 | "Key usage does not include certificate signing." |
2177 | 2177 | IDS_CERT_ERR_PATH_LENGTH_EXCEEDED "Path length constraint exceeded." |
2178 | | IDS_CERT_ERR_SELF_SIGNED_CERT_IN_CHAIN |
| 2178 | IDS_CERT_ERR_SELF_SIGNED_CERT_IN_CHAIN |
2179 | 2179 | "Self signed certificate in certificate chain." |
2180 | | IDS_CERT_ERR_UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY |
| 2180 | IDS_CERT_ERR_UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY |
2181 | 2181 | "Unable to decode issuer public key." |
2182 | | IDS_CERT_ERR_UNABLE_TO_DECRYPT_CERT_SIGNATURE |
| 2182 | IDS_CERT_ERR_UNABLE_TO_DECRYPT_CERT_SIGNATURE |
2183 | 2183 | "Unable to decrypt certificate signature." |
2184 | 2184 | IDS_CERT_ERR_UNABLE_TO_GET_ISSUER_CERT "Unable to get issuer certificate." |
2185 | | IDS_CERT_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY |
| 2185 | IDS_CERT_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY |
2186 | 2186 | "Unable to get local issuer certificate." |
2187 | | IDS_CERT_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE |
| 2187 | IDS_CERT_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE |
2188 | 2188 | "Unable to verify the first certifcate." |
2189 | 2189 | IDS_CERT_ERR_UNKNOWN "Unknown certificate verification error." |
2190 | 2190 | IDS_CERT_ERRDEPTH "The error occured at a depth of %d in the certificate chain." |
2191 | 2191 | IDS_CERT_OK "The certificate seems to be valid." |
2192 | 2192 | END |
2193 | 2193 | |
2194 | | STRINGTABLE |
| 2194 | STRINGTABLE |
2195 | 2195 | BEGIN |
2196 | 2196 | ID_QUICKCONNECTBAR_MENU_BYPASS "Connect and &bypass proxy settings" |
2197 | 2197 | ID_QUICKCONNECTBAR_MENU_CLEAR "&Clear" |
… |
… |
|
2199 | 2199 | ID_REMOTELISTSTYLE_LIST "Shows objects as list" |
2200 | 2200 | END |
2201 | 2201 | |
2202 | | STRINGTABLE |
| 2202 | STRINGTABLE |
2203 | 2203 | BEGIN |
2204 | 2204 | ID_REMOTELISTSTYLE_REPORT "Shows objects with details" |
2205 | 2205 | ID_REMOTELISTSTYLE_SMALLICON "Shows objects with small icons" |
… |
… |
|
2214 | 2214 | ID_TOOLBAR_REFRESH "Refresh all views" |
2215 | 2215 | END |
2216 | 2216 | |
2217 | | STRINGTABLE |
| 2217 | STRINGTABLE |
2218 | 2218 | BEGIN |
2219 | 2219 | ID_VIEW_LOCALLISTVIEW_FILESIZE "Show filesize" |
2220 | 2220 | ID_VIEW_LOCALLISTVIEW_FILETYPE "Show filetype" |
2221 | | ID_VIEW_LOCALLISTVIEW_LASTMODIFIEDTIME |
| 2221 | ID_VIEW_LOCALLISTVIEW_LASTMODIFIEDTIME |
2222 | 2222 | "Show the date and time when the file was modified last" |
2223 | 2223 | ID_VIEW_MESSAGELOG "Show or hide the message log" |
2224 | 2224 | ID_VIEW_QUICKCONNECT_BAR "Show or hide the Quick Connect bar" |
… |
… |
|
2226 | 2226 | ID_VIEW_REMOTELISTVIEW_FILESIZE "Show the filesize" |
2227 | 2227 | ID_VIEW_REMOTELISTVIEW_PERMISSIONS "Show the file permissions" |
2228 | 2228 | ID_VIEW_REMOTELISTVIEW_TIME "Show the time of the file" |
2229 | | ID_MENU_VIEW_LOCALLISTVIEW_STATUSBAR |
| 2229 | ID_MENU_VIEW_LOCALLISTVIEW_STATUSBAR |
2230 | 2230 | "Toggles the statusbar below the local file list which displays useful information about (selected) files and folders" |
2231 | | ID_MENU_VIEW_REMOTELISTVIEW_STATUSBAR |
| 2231 | ID_MENU_VIEW_REMOTELISTVIEW_STATUSBAR |
2232 | 2232 | "Toggles the statusbar below the remote file list which displays useful information about (selected) files and folders" |
2233 | 2233 | ID_QUEUECONTEXT_ABORT "Aborts selected transfers and removes them from the queue" |
2234 | 2234 | ID_QUEUECONTEXT_PAUSE "Pauses selected transfers" |
2235 | 2235 | END |
2236 | 2236 | |
2237 | | STRINGTABLE |
| 2237 | STRINGTABLE |
2238 | 2238 | BEGIN |
2239 | 2239 | ID_LOCALLISTSTYLE_SMALLICON "Shows objects with small icons" |
2240 | 2240 | ID_MENU_QUEUE_EXPORT "Exports all items in the queue" |
2241 | 2241 | ID_MENU_QUEUE_IMPORT "Imports queue entries from an external file" |
2242 | 2242 | ID_MENU_QUEUE_PROCESSNOW "Starts processing the queue" |
2243 | | ID_MENU_QUEUE_USEMULTIPLE |
| 2243 | ID_MENU_QUEUE_USEMULTIPLE |
2244 | 2244 | "When enabled, FileZilla can transfer several files at the same time" |
2245 | | ID_MENU_SERVER_CHANGEPASS |
| 2245 | ID_MENU_SERVER_CHANGEPASS |
2246 | 2246 | "Changes the password of the site. Only few ftp servers support this." |
2247 | | ID_MENU_SERVER_COPYURLTOCLIPBOARD |
| 2247 | ID_MENU_SERVER_COPYURLTOCLIPBOARD |
2248 | 2248 | "Copies to URL of the current server including the path to the clipboard" |
2249 | | ID_MENU_SERVER_ENTERRAWCOMMAND |
| 2249 | ID_MENU_SERVER_ENTERRAWCOMMAND |
2250 | 2250 | "Allows you to send raw FTP commands to the server" |
2251 | 2251 | ID_MENU_TRANSFER_MANUALTRANSFER "Set up a manual transfer" |
2252 | 2252 | END |
2253 | 2253 | |
2254 | | STRINGTABLE |
| 2254 | STRINGTABLE |
2255 | 2255 | BEGIN |
2256 | 2256 | ID_CANCELBUTTON "Cancel current operation" |
2257 | 2257 | ID_COPYTOSITEMANAGER "Copies the current connection into a new entry in the Site Manager" |
2258 | 2258 | ID_EDIT_EXPORTSETTINGS "Export settings into a file" |
2259 | 2259 | ID_EDIT_IMPORTSETTINGS "Import settings from a file" |
2260 | 2260 | ID_EDIT_SETTINGS "Enter the options Dialog of FileZilla" |
2261 | | ID_FILE_CONNECTTODEFAULTSITE |
| 2261 | ID_FILE_CONNECTTODEFAULTSITE |
2262 | 2262 | "Connects to the default site in the Site Manager" |
2263 | | ID_FILE_EXPORT_ASURLLIST |
| 2263 | ID_FILE_EXPORT_ASURLLIST |
2264 | 2264 | "Export all FTP sites into a textfile as URL list" |
2265 | | ID_FILE_EXPORT_WITHALLDETAILS |
| 2265 | ID_FILE_EXPORT_WITHALLDETAILS |
2266 | 2266 | "Export all FTP sites into a textfile with all details" |
2267 | 2267 | ID_FTPCONTEXT_CREATEDIR "Create a directory on the ftp server" |
2268 | 2268 | END |
2269 | 2269 | |
2270 | | STRINGTABLE |
| 2270 | STRINGTABLE |
2271 | 2271 | BEGIN |
2272 | 2272 | ID_HELPMENU_CONTENTS "Displays the table of contents of the help file" |
2273 | 2273 | ID_HELPMENU_INDEX "Displays the index of the help file" |
… |
… |
|
2277 | 2277 | ID_LOCALLISTSTYLE_REPORT "Shows objects with details" |
2278 | 2278 | END |
2279 | 2279 | |
2280 | | STRINGTABLE |
| 2280 | STRINGTABLE |
2281 | 2281 | BEGIN |
2282 | 2282 | ID_MENU_VIEW_SHOWHIDDEN "When checked, FileZilla tries to show hidden files on the server." |
2283 | 2283 | ID_OVERWRITEMENU_ASK "FileZilla will ask you what to do when a file already exists" |
2284 | 2284 | ID_OVERWRITEMENU_OVERWRITE "Always overwrite the file" |
2285 | | ID_OVERWRITEMENU_OVERWRITEIFNEWER |
| 2285 | ID_OVERWRITEMENU_OVERWRITEIFNEWER |
2286 | 2286 | "Overwrite the old file if the new file is newer" |
2287 | 2287 | ID_OVERWRITEMENU_RENAME "Asks for a new filename" |
2288 | 2288 | ID_OVERWRITEMENU_RESUME "Resume the transfer if possible" |
… |
… |
|
2290 | 2290 | ID_PROCESS_QUEUE "Process the queue" |
2291 | 2291 | END |
2292 | 2292 | |
2293 | | STRINGTABLE |
| 2293 | STRINGTABLE |
2294 | 2294 | BEGIN |
2295 | 2295 | IDS_DIRINFO_FILEMIN "1 file with at least %I64d bytes." |
2296 | | IDS_DIRINFO_DIRANDFILESMIN |
| 2296 | IDS_DIRINFO_DIRANDFILESMIN |
2297 | 2297 | "1 folder and %d files with at least %I64d bytes." |
2298 | 2298 | IDS_DIRINFO_DIRANDFILE "1 folder and 1 file with %I64d bytes." |
2299 | 2299 | IDS_DIRINFO_DIRSANDFILE "%d folders and 1 file with %I64d bytes." |
2300 | 2300 | IDS_DIRINFO_DIRANDFILEMIN "1 folder and 1 file with at least %I64d bytes." |
2301 | | IDS_DIRINFO_DIRSANDFILEMIN |
| 2301 | IDS_DIRINFO_DIRSANDFILEMIN |
2302 | 2302 | "%d folders and 1 file with at least %I64d bytes." |
2303 | 2303 | IDS_DIRINFO_SELECTED_FILE "Selected 1 file with %I64d bytes." |
2304 | 2304 | IDS_DIRINFO_SELECTED_DIR "Selected 1 folder." |
2305 | | IDS_DIRINFO_SELECTED_DIRANDFILES |
| 2305 | IDS_DIRINFO_SELECTED_DIRANDFILES |
2306 | 2306 | "Selected 1 folder and %d files with %I64d bytes." |
2307 | 2307 | IDS_DIRINFO_SELECTED_FILEMIN "Selected 1 file with at least %I64d bytes." |
2308 | | IDS_DIRINFO_SELECTED_DIRANDFILESMIN |
| 2308 | IDS_DIRINFO_SELECTED_DIRANDFILESMIN |
2309 | 2309 | "Selected 1 folder and %d files with at least %I64d bytes" |
2310 | | IDS_DIRINFO_SELECTED_DIRANDFILE |
| 2310 | IDS_DIRINFO_SELECTED_DIRANDFILE |
2311 | 2311 | "Selected 1 folder and 1 file with %I64d bytes." |
2312 | | IDS_DIRINFO_SELECTED_DIRANDFILEMIN |
| 2312 | IDS_DIRINFO_SELECTED_DIRANDFILEMIN |
2313 | 2313 | "Selected 1 folder and 1 file with at least %I64d bytes" |
2314 | | IDS_DIRINFO_SELECTED_DIRSANDFILE |
| 2314 | IDS_DIRINFO_SELECTED_DIRSANDFILE |
2315 | 2315 | "Selected %d folders and 1 file with %I64d bytes." |
2316 | | IDS_DIRINFO_SELECTED_DIRSANDFILEMIN |
| 2316 | IDS_DIRINFO_SELECTED_DIRSANDFILEMIN |
2317 | 2317 | "Selected %d folders and 1 file with at least %I64d bytes" |
2318 | 2318 | IDS_QUEUESTATUS_PAUSED "Paused" |
2319 | 2319 | END |
2320 | 2320 | |
2321 | | STRINGTABLE |
| 2321 | STRINGTABLE |
2322 | 2322 | BEGIN |
2323 | 2323 | ID_QUEUECONTEXT_RESUME "Resumes paused transfers" |
2324 | 2324 | ID_VIEW_REMOTELISTVIEW_FILETYPE "Show the filetype" |
2325 | | ID_MENU_VIEW_REMOTELISTVIEW_SORTBY_FILENAME |
| 2325 | ID_MENU_VIEW_REMOTELISTVIEW_SORTBY_FILENAME |
2326 | 2326 | "Sort remote filelist by filename" |
2327 | | ID_MENU_VIEW_REMOTELISTVIEW_SORTBY_FILESIZE |
| 2327 | ID_MENU_VIEW_REMOTELISTVIEW_SORTBY_FILESIZE |
2328 | 2328 | "Sort remote filelist by filesize" |
2329 | | ID_MENU_VIEW_REMOTELISTVIEW_SORTBY_FILETYPE |
| 2329 | ID_MENU_VIEW_REMOTELISTVIEW_SORTBY_FILETYPE |
2330 | 2330 | "Sort remote filelist by filetype" |
2331 | | ID_MENU_VIEW_REMOTELISTVIEW_SORTBY_DATETIME |
| 2331 | ID_MENU_VIEW_REMOTELISTVIEW_SORTBY_DATETIME |
2332 | 2332 | "Sort remote filelist by the date/time of the file" |
2333 | | ID_MENU_VIEW_REMOTELISTVIEW_SORTBY_ASCENDING |
| 2333 | ID_MENU_VIEW_REMOTELISTVIEW_SORTBY_ASCENDING |
2334 | 2334 | "Sort remote filelist in ascending order" |
2335 | | ID_MENU_VIEW_REMOTELISTVIEW_SORTBY_DESCENDING |
| 2335 | ID_MENU_VIEW_REMOTELISTVIEW_SORTBY_DESCENDING |
2336 | 2336 | "Sort remote filelist in descending order" |
2337 | 2337 | END |
2338 | 2338 | |
2339 | | STRINGTABLE |
| 2339 | STRINGTABLE |
2340 | 2340 | BEGIN |
2341 | 2341 | IDS_ERRORMSG_SETFILEPOINTER "Could not set file pointer" |
2342 | 2342 | IDS_ERRORMSG_UNKNOWNSSLERROR "Unknown error in SSL layer" |
2343 | 2343 | IDS_ERRORMSG_SSLCERTIFICATEERROR "Could not verify SSL certificate" |
2344 | 2344 | END |
2345 | 2345 | |
2346 | | STRINGTABLE |
| 2346 | STRINGTABLE |
2347 | 2347 | BEGIN |
2348 | | ID_MENU_VIEW_LOCALLISTVIEW_SORTBY_FILENAME |
| 2348 | ID_MENU_VIEW_LOCALLISTVIEW_SORTBY_FILENAME |
2349 | 2349 | "Sort local filelist by filename" |
2350 | | ID_MENU_VIEW_LOCALLISTVIEW_SORTBY_FILESIZE |
| 2350 | ID_MENU_VIEW_LOCALLISTVIEW_SORTBY_FILESIZE |
2351 | 2351 | "Sort local filelist by filesize" |
2352 | | ID_MENU_VIEW_LOCALLISTVIEW_SORTBY_FILETYPE |
| 2352 | ID_MENU_VIEW_LOCALLISTVIEW_SORTBY_FILETYPE |
2353 | 2353 | "Sort local filelist by filetype" |
2354 | | ID_MENU_VIEW_LOCALLISTVIEW_SORTBY_LASTMODIFIED |
| 2354 | ID_MENU_VIEW_LOCALLISTVIEW_SORTBY_LASTMODIFIED |
2355 | 2355 | "Sort local filelist by the date/time the files have been modified last" |
2356 | 2356 | ID_MENU_VIEW_LOCALLISTVIEW_SORTBY_ASCENDING |
2357 | 2357 | "Sort local file list in ascending order" |
2358 | | ID_MENU_VIEW_LOCALLISTVIEW_SORTBY_DESCENDING |
| 2358 | ID_MENU_VIEW_LOCALLISTVIEW_SORTBY_DESCENDING |
2359 | 2359 | "Sort local file list in descending order" |
2360 | 2360 | END |
2361 | 2361 | |
… |
… |
|
2382 | 2382 | |
2383 | 2383 | ///////////////////////////////////////////////////////////////////////////// |
2384 | 2384 | #endif // not APSTUDIO_INVOKED |
2385 | | |
RCS file: /cvsroot/filezilla/FileZilla/source/FtpControlSocket.cpp,v
retrieving revision 1.116
diff -u -r1.116 FtpControlSocket.cpp
|
|
|
40 | 40 | class CFtpControlSocket::CFileTransferData : public CFtpControlSocket::t_operation::COpData |
41 | 41 | { |
42 | 42 | public: |
43 | | CFileTransferData() |
| 43 | CFileTransferData() |
44 | 44 | { |
45 | 45 | pDirectoryListing=0; |
46 | 46 | nGotTransferEndReply=0; |
… |
… |
|
52 | 52 | bTriedPortPasvOnce = FALSE; |
53 | 53 | askOnResumeFail = false; |
54 | 54 | }; |
55 | | ~CFileTransferData() |
| 55 | ~CFileTransferData() |
56 | 56 | { |
57 | 57 | if (pDirectoryListing) |
58 | 58 | delete pDirectoryListing; |
… |
… |
|
84 | 84 | class CFtpControlSocket::CListData:public CFtpControlSocket::t_operation::COpData |
85 | 85 | { |
86 | 86 | public: |
87 | | CListData() |
| 87 | CListData() |
88 | 88 | { |
89 | 89 | pDirectoryListing = 0; |
90 | 90 | bTriedPortPasvOnce = FALSE; |
91 | 91 | lastCmdSentCDUP = false; |
92 | 92 | } |
93 | | virtual ~CListData() |
| 93 | virtual ~CListData() |
94 | 94 | { |
95 | 95 | if (pDirectoryListing) |
96 | 96 | delete pDirectoryListing; |
… |
… |
|
178 | 178 | } |
179 | 179 | |
180 | 180 | ///////////////////////////////////////////////////////////////////////////// |
181 | | // Member-Funktion CFtpControlSocket |
| 181 | // Member-Funktion CFtpControlSocket |
182 | 182 | #define CONNECT_INIT -1 |
183 | 183 | #define CONNECT_GSS_INIT -2 |
184 | 184 | #define CONNECT_GSS_AUTHDONE -3 |
… |
… |
|
280 | 280 | } |
281 | 281 | |
282 | 282 | m_Operation.nOpMode=CSMODE_CONNECT; |
283 | | |
| 283 | |
284 | 284 | BOOL bUseGSS = FALSE; |
285 | 285 | if (COptions::GetOptionVal(OPTION_USEGSS) && !m_pSslLayer) |
286 | 286 | { |
… |
… |
|
351 | 351 | CString buf,temp; |
352 | 352 | if (server.fwbypass) |
353 | 353 | logontype=0; |
354 | | |
| 354 | |
355 | 355 | // are we connecting directly to the host (logon type 0) or via a firewall? (logon type>0) |
356 | 356 | CString fwhost; |
357 | 357 | int fwport; |
… |
… |
|
366 | 366 | fwport=COptions::GetOptionVal(OPTION_FWPORT); |
367 | 367 | temp=fwhost; |
368 | 368 | port=fwport; |
369 | | if(fwport!=21) |
| 369 | if(fwport!=21) |
370 | 370 | fwhost.Format( _T("%s:%d"), fwhost, fwport); // add port to fwhost (only if port is not 21) |
371 | 371 | } |
372 | 372 | m_CurrentServer = server; |
373 | | |
| 373 | |
374 | 374 | CString hostname = server.host; |
375 | | if(server.port!=21) |
| 375 | if(server.port!=21) |
376 | 376 | hostname.Format( _T("%s:%d"), hostname, server.port); // add port to hostname (only if port is not 21) |
377 | 377 | CString str; |
378 | 378 | str.Format(IDS_STATUSMSG_CONNECTING, hostname); |
379 | 379 | ShowStatus(str, 0); |
380 | | |
| 380 | |
381 | 381 | if ((server.nServerType & FZ_SERVERTYPE_LAYERMASK) & (FZ_SERVERTYPE_LAYER_SSL_EXPLICIT | FZ_SERVERTYPE_LAYER_TLS_EXPLICIT)) |
382 | 382 | m_Operation.nOpState = CONNECT_SSL_INIT; |
383 | | |
| 383 | |
384 | 384 | if (!CControlSocket::Connect(temp, port)) |
385 | 385 | { |
386 | 386 | if (WSAGetLastError() != WSAEWOULDBLOCK) |
… |
… |
|
391 | 391 | } |
392 | 392 | m_ServerName = logontype?fwhost:hostname; |
393 | 393 | m_LastRecvTime = m_LastSendTime = CTime::GetCurrentTime(); |
394 | | |
| 394 | |
395 | 395 | } |
396 | 396 | |
397 | 397 | void CFtpControlSocket::LogOnToServer(BOOL bSkipReply /*=FALSE*/) |
… |
… |
|
401 | 401 | CString buf, temp; |
402 | 402 | const int NUMLOGIN = 9; // currently supports 9 different login sequences |
403 | 403 | int logonseq[NUMLOGIN][20] = { |
404 | | // this array stores all of the logon sequences for the various firewalls |
| 404 | // this array stores all of the logon sequences for the various firewalls |
405 | 405 | // in blocks of 3 nums. 1st num is command to send, 2nd num is next point in logon sequence array |
406 | 406 | // if 200 series response is rec'd from server as the result of the command, 3rd num is next |
407 | 407 | // point in logon sequence if 300 series rec'd |
… |
… |
|
417 | 417 | }; |
418 | 418 | if (m_CurrentServer.fwbypass) |
419 | 419 | logontype = 0; |
420 | | |
| 420 | |
421 | 421 | if (m_Operation.nOpState == CONNECT_SSL_INIT) |
422 | 422 | { |
423 | 423 | if (m_CurrentServer.nServerType & FZ_SERVERTYPE_LAYER_SSL_EXPLICIT) |
… |
… |
|
505 | 505 | // Some servers refuse to enable UTF8 if client does not send CLNT command |
506 | 506 | // to fix compatibility with Internet Explorer, but in the process breaking |
507 | 507 | // compatibility with other clients. |
508 | | // Rather than forcing MS to fix Internet Explorer, letting other clients |
| 508 | // Rather than forcing MS to fix Internet Explorer, letting other clients |
509 | 509 | // suffer is a questionable decision in my opinion. |
510 | 510 | if (Send("CLNT FileZilla")) |
511 | 511 | m_Operation.nOpState = CONNECT_CLNT; |
… |
… |
|
550 | 550 | if ((m_CurrentServer.nServerType & FZ_SERVERTYPE_LAYERMASK) & (FZ_SERVERTYPE_LAYER_SSL_IMPLICIT | FZ_SERVERTYPE_LAYER_SSL_EXPLICIT | FZ_SERVERTYPE_LAYER_TLS_EXPLICIT)) |
551 | 551 | { |
552 | 552 | m_Operation.nOpState = CONNECT_SSL_PBSZ; |
553 | | Send("PBSZ 0"); |
| 553 | Send("PBSZ 0"); |
554 | 554 | return; |
555 | 555 | } |
556 | 556 | |
… |
… |
|
569 | 569 | nError|=FZ_REPLY_CRITICALERROR; |
570 | 570 | |
571 | 571 | DoClose(nError); |
572 | | return; |
| 572 | return; |
573 | 573 | } |
574 | 574 | } |
575 | 575 | CString hostname = m_CurrentServer.host; |
… |
… |
|
636 | 636 | //GSS authentication complete but we still have to go through the standard logon procedure |
637 | 637 | m_Operation.nOpState = CONNECT_INIT; |
638 | 638 | } |
639 | | |
| 639 | |
640 | 640 | if (m_Operation.nOpState==CONNECT_INIT) |
641 | 641 | { |
642 | 642 | if (logontype) |
643 | 643 | { |
644 | | |
| 644 | |
645 | 645 | CString str; |
646 | 646 | str.Format(IDS_STATUSMSG_FWCONNECT,hostname); |
647 | 647 | ShowStatus(str,0); |
… |
… |
|
662 | 662 | return; |
663 | 663 | } |
664 | 664 | } |
665 | | |
| 665 | |
666 | 666 | // go through appropriate logon procedure |
667 | 667 | int i = logonseq[logontype][m_Operation.nOpState]; |
668 | 668 | if (m_pGssLayer) |
… |
… |
|
696 | 696 | return; |
697 | 697 | } |
698 | 698 | } |
699 | | switch(logonseq[logontype][m_Operation.nOpState]) |
| 699 | switch(logonseq[logontype][m_Operation.nOpState]) |
700 | 700 | { |
701 | 701 | case 0: |
702 | 702 | temp="USER "+m_CurrentServer.user; |
… |
… |
|
741 | 741 | } |
742 | 742 | |
743 | 743 | #define BUFFERSIZE 4096 |
744 | | void CFtpControlSocket::OnReceive(int nErrorCode) |
| 744 | void CFtpControlSocket::OnReceive(int nErrorCode) |
745 | 745 | { |
746 | 746 | LogMessage(__FILE__, __LINE__, this,FZ_LOG_DEBUG, _T("OnReceive(%d) OpMode=%d OpState=%d"), nErrorCode, m_Operation.nOpMode, m_Operation.nOpState); |
747 | 747 | |
… |
… |
|
918 | 918 | m_RecvBuffer.pop_front(); |
919 | 919 | } |
920 | 920 | |
921 | | void CFtpControlSocket::OnConnect(int nErrorCode) |
| 921 | void CFtpControlSocket::OnConnect(int nErrorCode) |
922 | 922 | { |
923 | 923 | LogMessage(__FILE__, __LINE__, this,FZ_LOG_DEBUG, _T("OnConnect(%d) OpMode=%d OpState=%d"), nErrorCode, m_Operation.nOpMode, m_Operation.nOpState); |
924 | 924 | |
… |
… |
|
950 | 950 | BOOL CFtpControlSocket::Send(CString str) |
951 | 951 | { |
952 | 952 | USES_CONVERSION; |
953 | | |
| 953 | |
954 | 954 | ShowStatus(str, 2); |
955 | 955 | str += "\r\n"; |
956 | 956 | int res = 0; |
… |
… |
|
1004 | 1004 | else |
1005 | 1005 | { |
1006 | 1006 | LPCSTR lpszAsciiSend = T2CA(str); |
1007 | | |
| 1007 | |
1008 | 1008 | int sendLen = strlen(lpszAsciiSend); |
1009 | 1009 | if (!m_awaitsReply && !m_sendBuffer) |
1010 | 1010 | res = CAsyncSocketEx::Send(lpszAsciiSend, strlen(lpszAsciiSend)); |
… |
… |
|
1060 | 1060 | void CFtpControlSocket::DoClose(int nError /*=0*/) |
1061 | 1061 | { |
1062 | 1062 | LogMessage(__FILE__, __LINE__, this,FZ_LOG_DEBUG, _T("DoClose(%d) OpMode=%d OpState=%d"), nError, m_Operation.nOpMode, m_Operation.nOpState); |
1063 | | |
| 1063 | |
1064 | 1064 | m_bCheckForTimeout=TRUE; |
1065 | 1065 | m_pOwner->SetConnected(FALSE); |
1066 | 1066 | m_bKeepAliveActive=FALSE; |
… |
… |
|
1096 | 1096 | ASSERT(!m_Operation.nOpMode); |
1097 | 1097 | m_Operation.nOpMode=CSMODE_DISCONNECT; |
1098 | 1098 | DoClose(); |
1099 | | ShowStatus(IDS_STATUSMSG_DISCONNECTED,0); //Send the disconnected message to the message log |
| 1099 | ShowStatus(IDS_STATUSMSG_DISCONNECTED,0); //Send the disconnected message to the message log |
1100 | 1100 | } |
1101 | 1101 | |
1102 | 1102 | void CFtpControlSocket::CheckForTimeout() |
… |
… |
|
1112 | 1112 | if (res) |
1113 | 1113 | return; |
1114 | 1114 | } |
1115 | | CTimeSpan span=CTime::GetCurrentTime()-m_LastRecvTime; |
| 1115 | CTimeSpan span=CTime::GetCurrentTime()-m_LastRecvTime; |
1116 | 1116 | if (span.GetTotalSeconds()>=delay) |
1117 | 1117 | { |
1118 | 1118 | ShowStatus(IDS_ERRORMSG_TIMEOUT, 1); |
… |
… |
|
1148 | 1148 | #define LIST_WAITFINISH 10 |
1149 | 1149 | |
1150 | 1150 | ASSERT(!m_Operation.nOpMode || m_Operation.nOpMode&CSMODE_LIST); |
1151 | | |
| 1151 | |
1152 | 1152 | m_Operation.nOpMode|=CSMODE_LIST; |
1153 | 1153 | |
1154 | 1154 | if (!m_pOwner->IsConnected()) |
… |
… |
|
1160 | 1160 | if (bFinish || nError) |
1161 | 1161 | if (m_Operation.nOpMode!=CSMODE_LIST) |
1162 | 1162 | return; //Old message coming in |
1163 | | |
| 1163 | |
1164 | 1164 | if (nError) |
1165 | 1165 | { |
1166 | 1166 | delete m_pTransferSocket; |
… |
… |
|
1181 | 1181 | delete m_pDirectoryListing; |
1182 | 1182 | m_pDirectoryListing=0; |
1183 | 1183 | delete m_pTransferSocket; |
1184 | | m_pTransferSocket=0; |
| 1184 | m_pTransferSocket=0; |
1185 | 1185 | ResetOperation(FZ_REPLY_ERROR); |
1186 | 1186 | return; |
1187 | 1187 | } |
… |
… |
|
1214 | 1214 | } |
1215 | 1215 | else |
1216 | 1216 | pData->pDirectoryListing->path = pData->realpath; |
1217 | | |
| 1217 | |
1218 | 1218 | if (m_Operation.nOpState!=LIST_WAITFINISH) |
1219 | 1219 | return; |
1220 | 1220 | else |
… |
… |
|
1223 | 1223 | m_pTransferSocket=0; |
1224 | 1224 | } |
1225 | 1225 | } |
1226 | | |
| 1226 | |
1227 | 1227 | if (m_Operation.nOpState==LIST_WAITFINISH) |
1228 | 1228 | { |
1229 | 1229 | if (!bFinish) |
… |
… |
|
1270 | 1270 | } |
1271 | 1271 | cache.Unlock(); |
1272 | 1272 | SetDirectoryListing(pData->pDirectoryListing); |
1273 | | ResetOperation(FZ_REPLY_OK); |
| 1273 | ResetOperation(FZ_REPLY_OK); |
1274 | 1274 | return; |
1275 | 1275 | } |
1276 | 1276 | return; |
… |
… |
|
1467 | 1467 | default: |
1468 | 1468 | error = TRUE; |
1469 | 1469 | } |
1470 | | |
| 1470 | |
1471 | 1471 | if (error) |
1472 | 1472 | { |
1473 | 1473 | ResetOperation(FZ_REPLY_ERROR); |
1474 | 1474 | return; |
1475 | | } |
| 1475 | } |
1476 | 1476 | } |
1477 | 1477 | if (m_Operation.nOpState==LIST_INIT) |
1478 | 1478 | { //Initialize some variables |
… |
… |
|
1488 | 1488 | delete m_pDirectoryListing; |
1489 | 1489 | m_pDirectoryListing=0; |
1490 | 1490 | } |
1491 | | |
| 1491 | |
1492 | 1492 | if (COptions::GetOptionVal(OPTION_PROXYTYPE)!=PROXYTYPE_NOPROXY && !m_CurrentServer.fwbypass) |
1493 | 1493 | pData->bPasv = TRUE; |
1494 | 1494 | else if (m_CurrentServer.nPasv == 1) |
… |
… |
|
1623 | 1623 | if (m_pGssLayer && m_pGssLayer->AuthSuccessful()) |
1624 | 1624 | m_pTransferSocket->UseGSS(m_pGssLayer); |
1625 | 1625 | m_pTransferSocket->SetFamily(GetFamily()); |
1626 | | if (!m_pTransferSocket->Create(m_pSslLayer && m_bProtP) || |
| 1626 | if (!m_pTransferSocket->Create(m_pSslLayer && m_bProtP) || |
1627 | 1627 | !m_pTransferSocket->AsyncSelect()) |
1628 | 1628 | { |
1629 | 1629 | ResetOperation(FZ_REPLY_ERROR); |
… |
… |
|
1644 | 1644 | return; |
1645 | 1645 | } |
1646 | 1646 | else |
1647 | | { |
| 1647 | { |
1648 | 1648 | m_pTransferSocket->m_bListening=TRUE; |
1649 | 1649 | if (m_pProxyLayer) |
1650 | 1650 | { |
… |
… |
|
1666 | 1666 | //Set up an active file transfer |
1667 | 1667 | CString tempHostname; |
1668 | 1668 | UINT nPort; |
1669 | | |
| 1669 | |
1670 | 1670 | if (// create listen socket (let MFC choose the port) & start the socket listening |
1671 | | !m_pTransferSocket->Listen() || |
| 1671 | !m_pTransferSocket->Listen() || |
1672 | 1672 | !m_pTransferSocket->GetSockName(tempHostname, nPort)) |
1673 | 1673 | { |
1674 | 1674 | ResetOperation(FZ_REPLY_ERROR); |
1675 | 1675 | return; |
1676 | 1676 | } |
1677 | | |
| 1677 | |
1678 | 1678 | CString host; |
1679 | 1679 | bool bError = false; |
1680 | 1680 | |
… |
… |
|
1710 | 1710 | |
1711 | 1711 | host.Replace('.', ','); |
1712 | 1712 | } |
1713 | | |
| 1713 | |
1714 | 1714 | if (!bError) |
1715 | 1715 | { |
1716 | 1716 | host.Format(host+",%d,%d", nPort/256, nPort%256); |
… |
… |
|
1775 | 1775 | } |
1776 | 1776 | |
1777 | 1777 | m_pTransferSocket->SetActive(); |
1778 | | |
| 1778 | |
1779 | 1779 | cmd = _T("LIST"); |
1780 | 1780 | if (m_pOwner->GetOption(FZAPI_OPTION_SHOWHIDDEN) && !(m_CurrentServer.nServerType & (FZ_SERVERTYPE_SUB_FTP_MVS | FZ_SERVERTYPE_SUB_FTP_VMS))) |
1781 | 1781 | cmd += _T(" -a"); |
1782 | | |
| 1782 | |
1783 | 1783 | if (!Send(cmd)) |
1784 | 1784 | return; |
1785 | | |
| 1785 | |
1786 | 1786 | pData->ListStartTime=CTime::GetCurrentTime(); |
1787 | 1787 | |
1788 | | if (pData->bPasv) |
| 1788 | if (pData->bPasv) |
1789 | 1789 | { |
1790 | 1790 | // if PASV create the socket & initiate outbound data channel connection |
1791 | 1791 | if (!m_pTransferSocket->Connect(pData->host,pData->port)) |
… |
… |
|
1819 | 1819 | List(TRUE,nMode&(CSMODE_TRANSFERERROR|CSMODE_TRANSFERTIMEOUT)); |
1820 | 1820 | } |
1821 | 1821 | |
1822 | | void CFtpControlSocket::OnClose(int nErrorCode) |
| 1822 | void CFtpControlSocket::OnClose(int nErrorCode) |
1823 | 1823 | { |
1824 | 1824 | LogMessage(__FILE__, __LINE__, this,FZ_LOG_DEBUG, _T("OnClose(%d) OpMode=%d OpState=%d"), nErrorCode, m_Operation.nOpMode, m_Operation.nOpState); |
1825 | 1825 | ShowStatus(IDS_STATUSMSG_DISCONNECTED, 1); |
… |
… |
|
1844 | 1844 | LogMessage(__FILE__, __LINE__, this,FZ_LOG_DEBUG, _T("FileTransfer(%d, %s, %d) OpMode=%d OpState=%d"), transferfile,bFinish?_T("TRUE"):_T("FALSE"), nError, m_Operation.nOpMode, m_Operation.nOpState); |
1845 | 1845 | |
1846 | 1846 | USES_CONVERSION; |
1847 | | |
| 1847 | |
1848 | 1848 | #define FILETRANSFER_INIT -1 //Opt: LIST TYPE |
1849 | 1849 | #define FILETRANSFER_CWD 0 //PWD |
1850 | 1850 | #define FILETRANSFER_MKD 1 |
… |
… |
|
1953 | 1953 | // +----------+ |
1954 | 1954 | // |WAITFINISH| |
1955 | 1955 | // +----------+ |
1956 | | |
| 1956 | |
1957 | 1957 | ASSERT(!m_Operation.nOpMode || m_Operation.nOpMode&CSMODE_TRANSFER); |
1958 | 1958 | if (!m_pOwner->IsConnected()) |
1959 | 1959 | { |
… |
… |
|
1972 | 1972 | // APPE failed, ignore this reply |
1973 | 1973 | if (m_Operation.nOpMode == FILETRANSFER_WAIT && bFinish) |
1974 | 1974 | return; |
1975 | | |
| 1975 | |
1976 | 1976 | if (!(m_Operation.nOpMode&CSMODE_TRANSFER)) |
1977 | 1977 | return; |
1978 | | |
| 1978 | |
1979 | 1979 | if (nError) |
1980 | 1980 | { |
1981 | 1981 | if (m_Operation.nOpState == FILETRANSFER_LIST_LIST && nError & CSMODE_TRANSFERERROR) |
… |
… |
|
2005 | 2005 | ResetOperation(FZ_REPLY_ERROR); |
2006 | 2006 | return; |
2007 | 2007 | } |
2008 | | |
| 2008 | |
2009 | 2009 | int num=0; |
2010 | 2010 | pData->pDirectoryListing=new t_directory; |
2011 | 2011 | if (COptions::GetOptionVal(OPTION_DEBUGSHOWLISTING)) |
… |
… |
|
2014 | 2014 | pData->pDirectoryListing->num=num; |
2015 | 2015 | if (m_pTransferSocket->m_pListResult->m_server.nServerType&FZ_SERVERTYPE_SUB_FTP_VMS && m_CurrentServer.nServerType&FZ_SERVERTYPE_FTP) |
2016 | 2016 | m_CurrentServer.nServerType |= FZ_SERVERTYPE_SUB_FTP_VMS; |
2017 | | pData->pDirectoryListing->server = m_CurrentServer; |
| 2017 | pData->pDirectoryListing->server = m_CurrentServer; |
2018 | 2018 | pData->pDirectoryListing->path.SetServer(m_CurrentServer); |
2019 | 2019 | pData->pDirectoryListing->path = pData->transferfile.remotepath; |
2020 | 2020 | if (pData->rawpwd!="") |
… |
… |
|
2031 | 2031 | } |
2032 | 2032 | else |
2033 | 2033 | pData->pDirectoryListing->path=pData->transferfile.remotepath; |
2034 | | |
| 2034 | |
2035 | 2035 | if (m_Operation.nOpState!=FILETRANSFER_LIST_WAITFINISH) |
2036 | 2036 | return; |
2037 | 2037 | } |
… |
… |
|
2069 | 2069 | ASSERT(!m_Operation.pData); |
2070 | 2070 | |
2071 | 2071 | CString str; |
2072 | | str.Format(transferfile->get?IDS_STATUSMSG_DOWNLOADSTART:IDS_STATUSMSG_UPLOADSTART, |
| 2072 | str.Format(transferfile->get?IDS_STATUSMSG_DOWNLOADSTART:IDS_STATUSMSG_UPLOADSTART, |
2073 | 2073 | transferfile->get ? transferfile->remotepath.AppendFilename(transferfile->remotefile) : transferfile->localfile); |
2074 | 2074 | ShowStatus(str,0); |
2075 | | |
| 2075 | |
2076 | 2076 | m_Operation.nOpMode=CSMODE_TRANSFER|(transferfile->get?CSMODE_DOWNLOAD:CSMODE_UPLOAD); |
2077 | 2077 | |
2078 | 2078 | m_Operation.pData=new CFileTransferData; |
… |
… |
|
2098 | 2098 | pData->transferdata.transferleft=pData->transferfile.size; |
2099 | 2099 | pData->transferdata.bResume = FALSE; |
2100 | 2100 | pData->transferdata.bType = (pData->transferfile.nType == 1) ? TRUE : FALSE; |
2101 | | |
| 2101 | |
2102 | 2102 | CServerPath path; |
2103 | 2103 | VERIFY (m_pOwner->GetCurrentPath(path)); |
2104 | 2104 | if (path==pData->transferfile.remotepath) |
… |
… |
|
2118 | 2118 | m_Operation.nOpState = NeedModeCommand() ? FILETRANSFER_LIST_MODE : (NeedOptsCommand() ? FILETRANSFER_LIST_OPTS : FILETRANSFER_LIST_TYPE); |
2119 | 2119 | break; |
2120 | 2120 | } |
2121 | | } |
| 2121 | } |
2122 | 2122 | if (m_pDirectoryListing && i==m_pDirectoryListing->num) |
2123 | 2123 | { |
2124 | 2124 | nReplyError = CheckOverwriteFile(); |
… |
… |
|
2236 | 2236 | if (res) |
2237 | 2237 | SetDirectoryListing(&dir); |
2238 | 2238 | } |
2239 | | |
| 2239 | |
2240 | 2240 | pData->nMKDOpState=MKD_CHANGETOSUBDIR; |
2241 | 2241 | pData->MKDCurrent.AddSubdir(pData->MKDSegments.front()); |
2242 | 2242 | CString Segment=pData->MKDSegments.front(); |
… |
… |
|
2253 | 2253 | pData->MKDSegments.push_front(pData->MKDCurrent.GetLastSegment()); |
2254 | 2254 | pData->MKDCurrent=pData->MKDCurrent.GetParent(); |
2255 | 2255 | if (!Send("CWD "+pData->MKDCurrent.GetPath())) |
2256 | | return; |
| 2256 | return; |
2257 | 2257 | } |
2258 | 2258 | } |
2259 | 2259 | } |
… |
… |
|
2315 | 2315 | dir.path=path2; |
2316 | 2316 | dir.server=m_CurrentServer; |
2317 | 2317 | } |
2318 | | |
| 2318 | |
2319 | 2319 | int i; |
2320 | 2320 | for (i=0; i<dir.num; i++) |
2321 | 2321 | if (dir.direntry[i].name == name) |
… |
… |
|
2366 | 2366 | pData->nMKDOpState=MKD_MAKESUBDIRS; |
2367 | 2367 | else |
2368 | 2368 | return; |
2369 | | } |
| 2369 | } |
2370 | 2370 | } |
2371 | 2371 | break; |
2372 | | default: |
| 2372 | default: |
2373 | 2373 | ASSERT(FALSE); |
2374 | 2374 | } |
2375 | | |
| 2375 | |
2376 | 2376 | break; |
2377 | 2377 | case FILETRANSFER_CWD2: |
2378 | 2378 | if (GetReplyCode()!=2 && GetReplyCode()!=3) |
… |
… |
|
2401 | 2401 | nReplyError = FZ_REPLY_ERROR; |
2402 | 2402 | break; |
2403 | 2403 | } |
2404 | | |
| 2404 | |
2405 | 2405 | pos2 = reply.Find(' ', pos1 + 1); |
2406 | 2406 | if (pos2 == -1) |
2407 | 2407 | pos2 = reply.GetLength(); |
… |
… |
|
2504 | 2504 | nReplyError=FZ_REPLY_ERROR; |
2505 | 2505 | break; |
2506 | 2506 | } |
2507 | | |
| 2507 | |
2508 | 2508 | if (pData->bPasv) |
2509 | 2509 | { |
2510 | 2510 | CString reply = GetReply(); |
… |
… |
|
2522 | 2522 | nReplyError = FZ_REPLY_ERROR; |
2523 | 2523 | break; |
2524 | 2524 | } |
2525 | | |
| 2525 | |
2526 | 2526 | CString temp; |
2527 | 2527 | temp = reply.Mid(i+1,(j-i)-1); |
2528 | 2528 | |
… |
… |
|
2599 | 2599 | nReplyError = FZ_REPLY_ERROR; |
2600 | 2600 | break; |
2601 | 2601 | } |
2602 | | |
| 2602 | |
2603 | 2603 | VERIFY(m_pTransferSocket->AsyncSelect()); |
2604 | 2604 | } |
2605 | 2605 | m_Operation.nOpState=FILETRANSFER_LIST_LIST; |
… |
… |
|
2635 | 2635 | cache.Store(listing); |
2636 | 2636 | cache.Unlock(); |
2637 | 2637 | SetDirectoryListing(&listing); |
2638 | | |
| 2638 | |
2639 | 2639 | m_Operation.nOpState = FILETRANSFER_TYPE; |
2640 | 2640 | delete m_pTransferSocket; |
2641 | 2641 | m_pTransferSocket = 0; |
2642 | | |
| 2642 | |
2643 | 2643 | nReplyError = CheckOverwriteFile(); |
2644 | 2644 | if (!nReplyError) |
2645 | 2645 | { |
… |
… |
|
2913 | 2913 | break; |
2914 | 2914 | } |
2915 | 2915 | |
2916 | | VERIFY(m_pTransferSocket->AsyncSelect()); |
| 2916 | VERIFY(m_pTransferSocket->AsyncSelect()); |
2917 | 2917 | } |
2918 | 2918 | |
2919 | 2919 | if (pData->transferdata.bResume && pData->transferfile.get) |
… |
… |
|
2947 | 2947 | nReplyError=FZ_REPLY_ERROR; |
2948 | 2948 | break; |
2949 | 2949 | } |
2950 | | |
| 2950 | |
2951 | 2951 | m_pTransferSocket->m_pFile = m_pDataFile; |
2952 | 2952 | if (!pData->transferfile.get) |
2953 | 2953 | { |
… |
… |
|
3018 | 3018 | } |
3019 | 3019 | END_CATCH_ALL; |
3020 | 3020 | } |
3021 | | |
| 3021 | |
3022 | 3022 | pData->transferdata.transfersize=m_pDirectoryListing->direntry[i].size; |
3023 | 3023 | } |
3024 | 3024 | } |
… |
… |
|
3065 | 3065 | return; |
3066 | 3066 | } |
3067 | 3067 | } |
3068 | | |
| 3068 | |
3069 | 3069 | ShowStatus(IDS_ERRORMSG_CANTRESUME, 1); |
3070 | 3070 | pData->transferdata.transferleft=pData->transferdata.transfersize; |
3071 | 3071 | pData->transferdata.bResume=FALSE; |
… |
… |
|
3080 | 3080 | // A '1xy opening data connection' reply is expected if RETR/STOR/APPE |
3081 | 3081 | // is successful. |
3082 | 3082 | // On failure, it's a 4xy or 5xy reply. |
3083 | | // However, some servers send a 2xy transfer complete reply without opening a data |
| 3083 | // However, some servers send a 2xy transfer complete reply without opening a data |
3084 | 3084 | // connection if there's no data to send. |
3085 | 3085 | if (GetReplyCode()==2) |
3086 | 3086 | { |
… |
… |
|
3110 | 3110 | else |
3111 | 3111 | { |
3112 | 3112 | m_Operation.nOpState=FILETRANSFER_WAITFINISH; |
3113 | | |
| 3113 | |
3114 | 3114 | //Look if we can find any information about the resume offset |
3115 | 3115 | if (!pData->transferfile.get && pData->transferdata.bResume) |
3116 | 3116 | { |
… |
… |
|
3157 | 3157 | } |
3158 | 3158 | else if (pData->bPasv) |
3159 | 3159 | m_pTransferSocket->SetActive(); |
3160 | | |
| 3160 | |
3161 | 3161 | } |
3162 | 3162 | break; |
3163 | 3163 | case FILETRANSFER_WAITFINISH: |
… |
… |
|
3198 | 3198 | break; |
3199 | 3199 | } |
3200 | 3200 | if (nReplyError) |
3201 | | { //Error transferring the file |
| 3201 | { //Error transferring the file |
3202 | 3202 | ResetOperation(nReplyError); |
3203 | 3203 | return; |
3204 | 3204 | } |
… |
… |
|
3298 | 3298 | ShowStatus(IDS_ERRORMSG_CANTGETLIST,1); |
3299 | 3299 | bError=TRUE; |
3300 | 3300 | } |
3301 | | //Don't send PORT command yet, params are unknown. |
| 3301 | //Don't send PORT command yet, params are unknown. |
3302 | 3302 | //will be sent in TransfersocketListenFinished |
3303 | 3303 | } |
3304 | 3304 | else |
… |
… |
|
3351 | 3351 | |
3352 | 3352 | host.Replace('.', ','); |
3353 | 3353 | } |
3354 | | |
| 3354 | |
3355 | 3355 | if (!bError) |
3356 | 3356 | { |
3357 | 3357 | host.Format(host+",%d,%d", nPort/256, nPort%256); |
… |
… |
|
3422 | 3422 | cmd += " -a"; |
3423 | 3423 | if(!Send(cmd)) |
3424 | 3424 | bError=TRUE; |
3425 | | else if(pData->bPasv) |
| 3425 | else if(pData->bPasv) |
3426 | 3426 | { |
3427 | 3427 | // if PASV create the socket & initiate outbound data channel connection |
3428 | 3428 | if (!m_pTransferSocket->Connect(pData->host,pData->port)) |
… |
… |
|
3448 | 3448 | } |
3449 | 3449 | else |
3450 | 3450 | command += pData->transferfile.remotepath.AppendFilename(pData->transferfile.remotefile); |
3451 | | |
| 3451 | |
3452 | 3452 | if (!Send(command)) |
3453 | 3453 | bError=TRUE; |
3454 | 3454 | } |
… |
… |
|
3465 | 3465 | } |
3466 | 3466 | else |
3467 | 3467 | command += pData->transferfile.remotepath.AppendFilename(pData->transferfile.remotefile); |
3468 | | |
| 3468 | |
3469 | 3469 | if (!Send(command)) |
3470 | 3470 | bError=TRUE; |
3471 | 3471 | } |
… |
… |
|
3539 | 3539 | ShowStatus(IDS_ERRORMSG_CANTGETLIST,1); |
3540 | 3540 | bError=TRUE; |
3541 | 3541 | } |
3542 | | //Don't send PORT command yet, params are unknown. |
| 3542 | //Don't send PORT command yet, params are unknown. |
3543 | 3543 | //will be sent in TransfersocketListenFinished |
3544 | 3544 | } |
3545 | 3545 | else |
3546 | 3546 | { |
3547 | 3547 | //Set up an active file transfer |
3548 | | |
| 3548 | |
3549 | 3549 | CString temp; |
3550 | 3550 | UINT nPort; |
3551 | 3551 | if (//create listen socket (let Windows choose the port) & start listening |
… |
… |
|
3589 | 3589 | |
3590 | 3590 | host.Replace('.', ','); |
3591 | 3591 | } |
3592 | | |
| 3592 | |
3593 | 3593 | if (!bError) |
3594 | 3594 | { |
3595 | 3595 | host.Format(host+",%d,%d", nPort/256, nPort%256); |
… |
… |
|
3681 | 3681 | bError = TRUE; |
3682 | 3682 | else |
3683 | 3683 | { |
3684 | | if (pData->bPasv) |
| 3684 | if (pData->bPasv) |
3685 | 3685 | {// if PASV create the socket & initiate outbound data channel connection |
3686 | 3686 | if (!m_pTransferSocket->Connect(pData->host,pData->port)) |
3687 | 3687 | { |
… |
… |
|
3693 | 3693 | break; |
3694 | 3694 | } |
3695 | 3695 | if (bError) |
3696 | | { //Error transferring the file |
| 3696 | { //Error transferring the file |
3697 | 3697 | ResetOperation(FZ_REPLY_ERROR); |
3698 | 3698 | return; |
3699 | 3699 | } |
3700 | | } |
| 3700 | } |
3701 | 3701 | |
3702 | 3702 | void CFtpControlSocket::Cancel(BOOL bQuit/*=FALSE*/) |
3703 | 3703 | { |
3704 | 3704 | LogMessage(__FILE__, __LINE__, this,FZ_LOG_DEBUG, _T("Cancel(%s) OpMode=%d OpState=%d"), bQuit?_T("TRUE"):_T("FALSE"), m_Operation.nOpMode, m_Operation.nOpState); |
3705 | | |
| 3705 | |
3706 | 3706 | const int nOpMode = m_Operation.nOpMode; |
3707 | 3707 | if (nOpMode==CSMODE_CONNECT) |
3708 | 3708 | DoClose(FZ_REPLY_CANCEL); |
… |
… |
|
3720 | 3720 | } |
3721 | 3721 | else if (nOpMode != CSMODE_NONE) |
3722 | 3722 | ResetOperation(FZ_REPLY_ERROR | FZ_REPLY_CANCEL); |
3723 | | |
| 3723 | |
3724 | 3724 | if (nOpMode != CSMODE_NONE && !bQuit) |
3725 | 3725 | ShowStatus(IDS_ERRORMSG_INTERRUPTED, 1); |
3726 | 3726 | |
… |
… |
|
3799 | 3799 | if (m_pDataFile) |
3800 | 3800 | delete m_pDataFile; |
3801 | 3801 | m_pDataFile=0; |
3802 | | |
| 3802 | |
3803 | 3803 | if (m_Operation.nOpMode) |
3804 | | { |
| 3804 | { |
3805 | 3805 | //Unset busy attribute so that new commands can be executed |
3806 | 3806 | m_pOwner->SetBusy(FALSE); |
3807 | | |
| 3807 | |
3808 | 3808 | if (m_Operation.nOpMode&CSMODE_CONNECT && nSuccessful&FZ_REPLY_ERROR) |
3809 | 3809 | { |
3810 | 3810 | nSuccessful|=FZ_REPLY_DISCONNECTED; |
3811 | 3811 | ShowStatus(IDS_ERRORMSG_CANTCONNECT, 1); |
3812 | 3812 | } |
3813 | | |
| 3813 | |
3814 | 3814 | if (m_Operation.nOpMode & (CSMODE_LIST|CSMODE_TRANSFER) && nSuccessful==FZ_REPLY_OK) |
3815 | 3815 | m_LastSendTime=CTime::GetCurrentTime(); |
3816 | | |
| 3816 | |
3817 | 3817 | //Update remote file entry |
3818 | | if (m_Operation.pData && |
3819 | | m_Operation.nOpMode&CSMODE_TRANSFER && |
3820 | | (!((CFileTransferData*)m_Operation.pData)->transferfile.get) && |
| 3818 | if (m_Operation.pData && |
| 3819 | m_Operation.nOpMode&CSMODE_TRANSFER && |
| 3820 | (!((CFileTransferData*)m_Operation.pData)->transferfile.get) && |
3821 | 3821 | m_pDirectoryListing && |
3822 | 3822 | m_Operation.nOpState>=FILETRANSFER_RETRSTOR) |
3823 | 3823 | { |
… |
… |
|
3883 | 3883 | entries[i].bUnsure=FALSE; |
3884 | 3884 | else |
3885 | 3885 | entries[i].bUnsure=TRUE; |
3886 | | |
| 3886 | |
3887 | 3887 | delete [] dir.direntry; |
3888 | 3888 | dir.direntry=entries; |
3889 | 3889 | dir.num++; |
… |
… |
|
3904 | 3904 | } |
3905 | 3905 | cache.Unlock(); |
3906 | 3906 | } |
3907 | | |
| 3907 | |
3908 | 3908 | if (m_Operation.pData && nSuccessful&FZ_REPLY_ERROR) |
3909 | 3909 | { |
3910 | 3910 | if (m_Operation.nOpMode&CSMODE_TRANSFER) |
… |
… |
|
3926 | 3926 | if (!nSuccessful) |
3927 | 3927 | ASSERT(FALSE); |
3928 | 3928 | } |
3929 | | |
| 3929 | |
3930 | 3930 | if (nSuccessful&FZ_REPLY_DISCONNECTED) |
3931 | 3931 | m_pOwner->SetWorkingDir(0); //Disconnected, reset working dir |
3932 | | |
| 3932 | |
3933 | 3933 | if (m_Operation.nOpMode) |
3934 | 3934 | PostMessage(m_pOwner->m_hOwnerWnd, m_pOwner->m_nReplyMessageID, FZ_MSG_MAKEMSG(FZ_MSG_REPLY, m_pOwner->m_LastCommand.id), nSuccessful); |
3935 | 3935 | else |
… |
… |
|
3946 | 3946 | void CFtpControlSocket::Delete(CString filename, const CServerPath &path) |
3947 | 3947 | { |
3948 | 3948 | LogMessage(__FILE__, __LINE__, this,FZ_LOG_DEBUG, _T("Delete(\"%s\", \"%s\") OpMode=%d OpState=%d"), filename, path.GetPath(), m_Operation.nOpMode, m_Operation.nOpState); |
3949 | | |
| 3949 | |
3950 | 3950 | class CDeleteData : public CFtpControlSocket::t_operation::COpData |
3951 | 3951 | { |
3952 | 3952 | public: |
… |
… |
|
4054 | 4054 | void CFtpControlSocket::RemoveDir(CString dirname, const CServerPath &path) |
4055 | 4055 | { |
4056 | 4056 | LogMessage(__FILE__, __LINE__, this,FZ_LOG_DEBUG, _T("RemoveDir(\"%s\", \"%s\") OpMode=%d OpState=%d"), dirname, path.GetPath(), m_Operation.nOpMode, m_Operation.nOpState); |
4057 | | |
| 4057 | |
4058 | 4058 | class CRemoveDirData : public CFtpControlSocket::t_operation::COpData |
4059 | 4059 | { |
4060 | 4060 | public: |
… |
… |
|
4175 | 4175 | return FZ_REPLY_ERROR; |
4176 | 4176 | |
4177 | 4177 | CFileTransferData *pData = reinterpret_cast<CFileTransferData *>(m_Operation.pData); |
4178 | | |
| 4178 | |
4179 | 4179 | int nReplyError = 0; |
4180 | 4180 | CFileStatus64 status; |
4181 | 4181 | BOOL res = GetStatus64(pData->transferfile.localfile, status); |
… |
… |
|
4189 | 4189 | if (status.m_attribute & 0x10) |
4190 | 4190 | nReplyError = FZ_REPLY_CRITICALERROR; //Can't transfer to/from dirs |
4191 | 4191 | else |
4192 | | { |
| 4192 | { |
4193 | 4193 | _int64 localsize; |
4194 | 4194 | if (!GetLength64(pData->transferfile.localfile, localsize)) |
4195 | 4195 | if (!pData->transferfile.get) |
… |
… |
|
4197 | 4197 | else |
4198 | 4198 | m_Operation.nOpState = FILETRANSFER_TYPE; |
4199 | 4199 | |
4200 | | |
| 4200 | |
4201 | 4201 | CTime *localtime = NULL; |
4202 | 4202 | TRY |
4203 | 4203 | { |
… |
… |
|
4267 | 4267 | *remotetime = *pData->pFileTime; |
4268 | 4268 | bRemoteFileExists = TRUE; |
4269 | 4269 | } |
4270 | | |
| 4270 | |
4271 | 4271 | if (bRemoteFileExists || pData->transferfile.get ) |
4272 | 4272 | { |
4273 | 4273 | COverwriteRequestData *pOverwriteData = new COverwriteRequestData; |
… |
… |
|
4298 | 4298 | pOverwriteData->size1 = remotesize; |
4299 | 4299 | pOverwriteData->size2 = localsize; |
4300 | 4300 | pOverwriteData->time1 = remotetime; |
4301 | | pOverwriteData->time2 = localtime; |
| 4301 | pOverwriteData->time2 = localtime; |
4302 | 4302 | } |
4303 | 4303 | pOverwriteData->nRequestID = m_pOwner->GetNextAsyncRequestID(); |
4304 | 4304 | if (!PostMessage(m_pOwner->m_hOwnerWnd, m_pOwner->m_nReplyMessageID, FZ_MSG_MAKEMSG(FZ_MSG_ASYNCREQUEST, FZ_ASYNCREQUEST_OVERWRITE), (LPARAM)pOverwriteData)) |
… |
… |
|
4373 | 4373 | for (int i = (pos+1); i < pTransferData->transferfile.localfile.GetLength(); i++) |
4374 | 4374 | if (pTransferData->transferfile.localfile[i] == ':') |
4375 | 4375 | pTransferData->transferfile.localfile.SetAt(i, '_'); |
4376 | | |
| 4376 | |
4377 | 4377 | pTransferData->nWaitNextOpState= FILETRANSFER_TYPE; |
4378 | | } |
| 4378 | } |
4379 | 4379 | } |
4380 | 4380 | else |
4381 | 4381 | { |
… |
… |
|
4429 | 4429 | //Directory creation works like this: |
4430 | 4430 | //Find existing parent and create subdirs one by one |
4431 | 4431 | LogMessage(__FILE__, __LINE__, this, FZ_LOG_DEBUG, _T("MakeDir(\"%s\") OpMode=%d OpState=%d"), path.GetPath(), m_Operation.nOpMode, m_Operation.nOpState); |
4432 | | |
| 4432 | |
4433 | 4433 | if (m_Operation.nOpState == MKD_INIT) |
4434 | 4434 | { |
4435 | 4435 | ASSERT(!path.IsEmpty()); |
… |
… |
|
4474 | 4474 | pData->Segments.push_front(pData->Current.GetLastSegment()); |
4475 | 4475 | pData->Current=pData->Current.GetParent(); |
4476 | 4476 | if (!Send("CWD "+pData->Current.GetPath())) |
4477 | | return; |
| 4477 | return; |
4478 | 4478 | } |
4479 | 4479 | } |
4480 | 4480 | } |
… |
… |
|
4488 | 4488 | ASSERT(!pData->Segments.empty()); |
4489 | 4489 | |
4490 | 4490 | m_pOwner->SetCurrentPath(pData->Current); |
4491 | | |
| 4491 | |
4492 | 4492 | pData->Current.AddSubdir(pData->Segments.front()); |
4493 | 4493 | CString Segment=pData->Segments.front(); |
4494 | 4494 | pData->Segments.pop_front(); |
… |
… |
|
4579 | 4579 | m_pOwner->SetWorkingDir(&dir); |
4580 | 4580 | } |
4581 | 4581 | } |
4582 | | |
| 4582 | |
4583 | 4583 | cache.Unlock(); |
4584 | 4584 | } |
4585 | 4585 | } |
… |
… |
|
4593 | 4593 | m_Operation.nOpState=MKD_MAKESUBDIRS; |
4594 | 4594 | else |
4595 | 4595 | return; |
4596 | | } |
| 4596 | } |
4597 | 4597 | } |
4598 | | else |
| 4598 | else |
4599 | 4599 | ASSERT(FALSE); |
4600 | 4600 | } |
4601 | 4601 | |
… |
… |
|
4636 | 4636 | ASSERT(m_Operation.nOpMode == CSMODE_RENAME); |
4637 | 4637 | ASSERT(m_Operation.pData); |
4638 | 4638 | CRenameData *pData = reinterpret_cast<CRenameData *>(m_Operation.pData); |
4639 | | |
| 4639 | |
4640 | 4640 | if (m_Operation.nOpState == -1) |
4641 | 4641 | { |
4642 | 4642 | int res = GetReplyCode(); |
… |
… |
|
4661 | 4661 | if (res == 2 || res == 3) |
4662 | 4662 | { //Rename entry in cached directory |
4663 | 4663 | CRenameData *pData = reinterpret_cast<CRenameData *>(m_Operation.pData); |
4664 | | |
| 4664 | |
4665 | 4665 | CDirectoryCache cache; |
4666 | 4666 | |
4667 | 4667 | cache.Lock(); |
4668 | | |
| 4668 | |
4669 | 4669 | //Rename all references to the directory in the cache |
4670 | 4670 | if (pData->newPath.IsEmpty()) |
4671 | 4671 | cache.Rename(pData->path, pData->oldName, pData->newName, m_CurrentServer); |
4672 | | |
| 4672 | |
4673 | 4673 | BOOL bCached = TRUE; |
4674 | 4674 | t_directory dir; |
4675 | 4675 | BOOL res = cache.Lookup(pData->path, m_CurrentServer, dir); |
… |
… |
|
4728 | 4728 | dir.num--; |
4729 | 4729 | |
4730 | 4730 | cache.Store(dir, bCached); |
4731 | | |
| 4731 | |
4732 | 4732 | // If directory, delete old directory from cache |
4733 | 4733 | t_directory olddir; |
4734 | 4734 | res = cache.Lookup(pData->path, pData->oldName, m_CurrentServer, olddir); |
… |
… |
|
4752 | 4752 | updated = TRUE; |
4753 | 4753 | m_pOwner->SetWorkingDir(&dir); |
4754 | 4754 | } |
4755 | | |
| 4755 | |
4756 | 4756 | BOOL bCached = TRUE; |
4757 | 4757 | BOOL res = cache.Lookup(pData->newPath, m_CurrentServer, dir); |
4758 | 4758 | if (!res) |
… |
… |
|
4785 | 4785 | dir.num++; |
4786 | 4786 | delete [] dir.direntry; |
4787 | 4787 | dir.direntry = direntry; |
4788 | | |
| 4788 | |
4789 | 4789 | cache.Store(dir, bCached); |
4790 | 4790 | BOOL updated = FALSE; |
4791 | 4791 | if (m_pDirectoryListing && m_pDirectoryListing->path == dir.path) |
… |
… |
|
4836 | 4836 | //Getting intervals for the Keep Alive feature |
4837 | 4837 | int low=COptions::GetOptionVal(OPTION_INTERVALLOW); |
4838 | 4838 | int diff=COptions::GetOptionVal(OPTION_INTERVALHIGH)-low; |
4839 | | |
| 4839 | |
4840 | 4840 | //Choose a new delay |
4841 | 4841 | static int delay=low+(rand()*diff)/RAND_MAX; |
4842 | | |
| 4842 | |
4843 | 4843 | CTimeSpan span=CTime::GetCurrentTime()-m_LastSendTime; |
4844 | 4844 | if (span.GetTotalSeconds()>=delay) |
4845 | 4845 | SendKeepAliveCommand(); |
… |
… |
|
4876 | 4876 | if (!m_RecvBuffer.empty() && m_RecvBuffer.front() != "") |
4877 | 4877 | { |
4878 | 4878 | DoClose(); |
4879 | | break; |
| 4879 | break; |
4880 | 4880 | } |
4881 | 4881 | if (!nAction) |
4882 | 4882 | { |
… |
… |
|
4894 | 4894 | if (!m_RecvBuffer.empty() && m_RecvBuffer.front() != "") |
4895 | 4895 | { |
4896 | 4896 | DoClose(); |
4897 | | break; |
| 4897 | break; |
4898 | 4898 | } |
4899 | 4899 | if (!nAction) |
4900 | 4900 | { |
… |
… |
|
4916 | 4916 | if (!m_RecvBuffer.empty() && m_RecvBuffer.front() != "") |
4917 | 4917 | { |
4918 | 4918 | DoClose(); |
4919 | | break; |
| 4919 | break; |
4920 | 4920 | } |
4921 | 4921 | if (!nAction) |
4922 | 4922 | { |
… |
… |
|
5181 | 5181 | if (m_RecvBuffer.empty()) |
5182 | 5182 | m_RecvBuffer.push_back(""); |
5183 | 5183 | return ""; |
5184 | | } |
| 5184 | } |
5185 | 5185 | else |
5186 | 5186 | { |
5187 | 5187 | LPWSTR p1 = new WCHAR[len + 1]; |
RCS file: /cvsroot/filezilla/FileZilla/source/MainFrm.cpp,v
retrieving revision 1.195
diff -u -r1.195 MainFrm.cpp
|
|
|
221 | 221 | |
222 | 222 | CMainFrame::CMainFrame() |
223 | 223 | { |
224 | | nTrayNotificationMsg_ = RegisterWindowMessage( _T("FileZilla Tray Notification Message") ); |
| 224 | nTrayNotificationMsg_ = RegisterWindowMessage( _T("FileZilla Tray Notification Message") ); |
225 | 225 | initialized = FALSE; |
226 | 226 | m_nTransferType = COptions::GetOptionVal(OPTION_TRANSFERMODE); |
227 | 227 | m_nLocalListViewStyle = m_nRemoteListViewStyle = 0; |
… |
… |
|
236 | 236 | |
237 | 237 | m_pLocalViewHeader = NULL; |
238 | 238 | m_pRemoteViewHeader = NULL; |
239 | | |
| 239 | |
240 | 240 | m_pWndReBar = NULL; |
241 | 241 | m_pWndDlgBar = NULL; |
242 | 242 | m_pWndToolBar = NULL; |
243 | | |
| 243 | |
244 | 244 | m_pMinTrayBtn = NULL; |
245 | 245 | |
246 | 246 | m_nLocalTreeViewLocation = COptions::GetOptionVal(OPTION_LOCALTREEVIEWLOCATION); |
… |
… |
|
281 | 281 | return -1; |
282 | 282 | |
283 | 283 | SetupTrayIcon(); |
284 | | |
| 284 | |
285 | 285 | SetWindowText(GetVersionString()); |
286 | | |
| 286 | |
287 | 287 | if (!CreateToolbars()) |
288 | 288 | return -1; |
289 | 289 | |
… |
… |
|
327 | 327 | } |
328 | 328 | else if (server.port!=21) |
329 | 329 | tmp.Format(_T("%d"), server.port); |
330 | | |
| 330 | |
331 | 331 | if (tmp!="") |
332 | 332 | str+=_T(":")+tmp; |
333 | | |
| 333 | |
334 | 334 | if (!m_RecentQuickconnectServers.size()) |
335 | 335 | m_wndQuickconnectButton.AddMenuItem(0, MF_SEPARATOR); |
336 | 336 | m_RecentQuickconnectServers.push_front(server); |
… |
… |
|
373 | 373 | } |
374 | 374 | else if (server.port!=21) |
375 | 375 | tmp.Format(_T("%d"), server.port); |
376 | | |
| 376 | |
377 | 377 | if (tmp!="") |
378 | 378 | str+=_T(":")+tmp; |
379 | | |
| 379 | |
380 | 380 | if (!m_RecentQuickconnectServers.size()) |
381 | 381 | m_wndQuickconnectButton.AddMenuItem(0, MF_SEPARATOR); |
382 | 382 | m_RecentQuickconnectServers.push_front(server); |
… |
… |
|
392 | 392 | } |
393 | 393 | } |
394 | 394 | } |
395 | | |
| 395 | |
396 | 396 | if (!m_wndStatusBar.Create(this) || |
397 | 397 | !m_wndStatusBar.SetIndicators(indicators, |
398 | 398 | sizeof(indicators)/sizeof(UINT))) |
… |
… |
|
402 | 402 | } |
403 | 403 | |
404 | 404 | RECT MyRect; |
405 | | m_wndStatusBar.GetItemRect(m_wndStatusBar.CommandToIndex(ID_INDICATOR_PROGRESS_PANE), &MyRect); |
| 405 | m_wndStatusBar.GetItemRect(m_wndStatusBar.CommandToIndex(ID_INDICATOR_PROGRESS_PANE), &MyRect); |
406 | 406 | |
407 | 407 | //Create the progress control |
408 | | m_ProgressCtrl.Create(WS_VISIBLE|WS_CHILD, MyRect, &m_wndStatusBar, m_wndStatusBar.CommandToIndex(ID_INDICATOR_PROGRESS_PANE)); |
| 408 | m_ProgressCtrl.Create(WS_VISIBLE|WS_CHILD, MyRect, &m_wndStatusBar, m_wndStatusBar.CommandToIndex(ID_INDICATOR_PROGRESS_PANE)); |
409 | 409 | m_ProgressCtrl.SetRange(0,100); //Set the range to between 0 and 100 |
410 | 410 | m_ProgressCtrl.SetStep(1); // Set the step amount |
411 | 411 | m_ProgressCtrl.ShowWindow(SW_HIDE); |
412 | 412 | |
413 | | m_wndStatusBar.GetItemRect(m_wndStatusBar.CommandToIndex(ID_INDICATOR_RECVLED), &MyRect); |
| 413 | m_wndStatusBar.GetItemRect(m_wndStatusBar.CommandToIndex(ID_INDICATOR_RECVLED), &MyRect); |
414 | 414 | |
415 | 415 | RECT rc; |
416 | 416 | m_wndStatusBar.GetItemRect(m_wndStatusBar.CommandToIndex(ID_INDICATOR_PROGRESS_PANE), &rc); |
… |
… |
|
420 | 420 | m_ProgressCtrl.SetShowText(TRUE); |
421 | 421 | |
422 | 422 | //Create the first LED control |
423 | | m_RecvLed.Create(_T(""), WS_VISIBLE|WS_CHILD, MyRect, &m_wndStatusBar, m_wndStatusBar.CommandToIndex(ID_INDICATOR_RECVLED)); |
| 423 | m_RecvLed.Create(_T(""), WS_VISIBLE|WS_CHILD, MyRect, &m_wndStatusBar, m_wndStatusBar.CommandToIndex(ID_INDICATOR_RECVLED)); |
424 | 424 | m_RecvLed.SetLed( CLed::LED_COLOR_GREEN, CLed::LED_OFF, CLed::LED_ROUND); |
425 | 425 | |
426 | | |
| 426 | |
427 | 427 | m_wndStatusBar.GetItemRect(m_wndStatusBar.CommandToIndex(ID_INDICATOR_RECVLED), &rc); |
428 | 428 | // Reposition the first LED correctly! |
429 | 429 | m_RecvLed.SetWindowPos(&wndTop, rc.left, rc.top, rc.right - rc.left, |
430 | 430 | rc.bottom - rc.top, 0); |
431 | 431 | |
432 | 432 | //Create the second LED control |
433 | | m_SendLed.Create(_T(""), WS_VISIBLE|WS_CHILD, MyRect, &m_wndStatusBar, m_wndStatusBar.CommandToIndex(ID_INDICATOR_SENDLED)); |
| 433 | m_SendLed.Create(_T(""), WS_VISIBLE|WS_CHILD, MyRect, &m_wndStatusBar, m_wndStatusBar.CommandToIndex(ID_INDICATOR_SENDLED)); |
434 | 434 | m_SendLed.SetLed( CLed::LED_COLOR_RED, CLed::LED_OFF, CLed::LED_ROUND); |
435 | 435 | |
436 | | |
| 436 | |
437 | 437 | m_wndStatusBar.GetItemRect(m_wndStatusBar.CommandToIndex(ID_INDICATOR_SENDLED), &rc); |
438 | 438 | // Reposition the second LED correctly! |
439 | 439 | m_SendLed.SetWindowPos(&wndTop, rc.left, rc.top, rc.right - rc.left, |
440 | 440 | rc.bottom - rc.top, 0); |
441 | 441 | |
442 | | |
| 442 | |
443 | 443 | m_wndStatusBar.SetPaneInfo(0,m_wndStatusBar.GetItemID(0),SBPS_STRETCH|SBPS_NOBORDERS,200); |
444 | 444 | m_wndStatusBar.SetPaneInfo(m_wndStatusBar.CommandToIndex(ID_INDICATOR_PROGRESS_PANE),ID_INDICATOR_PROGRESS_PANE,SBPS_NORMAL,100); |
445 | 445 | |
… |
… |
|
457 | 457 | m_bShowHiddenFiles=COptions::GetOptionVal(OPTION_ALWAYSSHOWHIDDEN); |
458 | 458 | if (m_pFileZillaApi) |
459 | 459 | m_pFileZillaApi->SetOption(FZAPI_OPTION_SHOWHIDDEN, m_bShowHiddenFiles); |
460 | | |
| 460 | |
461 | 461 | m_pCommandQueue=new CCommandQueue(m_pFileZillaApi); |
462 | | |
| 462 | |
463 | 463 | m_bShowTree=TRUE; |
464 | 464 | m_bShowRemoteTree=TRUE; |
465 | 465 | m_bShowQueue=1; |
… |
… |
|
495 | 495 | m_wndLocalSplitter.RecalcLayout(); |
496 | 496 | } |
497 | 497 | } |
498 | | |
| 498 | |
499 | 499 | if (!m_nRemoteTreeViewLocation) |
500 | 500 | { |
501 | 501 | m_wndRemoteSplitter.GetRowInfo(1, s2, temp); |
… |
… |
|
520 | 520 | //Load the icon which indicates secure sites |
521 | 521 | m_pSecureIconCtrl->Create(_T(""), WS_CHILD|SS_ICON,CRect(0,0,16,16),&m_wndStatusBar,m_wndStatusBar.CommandToIndex(ID_INDICATOR_SECURESERVER)); |
522 | 522 | m_pSecureIconCtrl->SetIcon( ::LoadIcon(AfxGetInstanceHandle(), MAKEINTRESOURCE(IDI_SECURE))); |
523 | | |
| 523 | |
524 | 524 | |
525 | 525 | int cx,cx2; |
526 | 526 | m_wndMainSplitter.GetColumnInfo(0,cx,temp); |
… |
… |
|
544 | 544 | OnShowremotetree(); |
545 | 545 | if (COptions::GetOptionVal(OPTION_SHOWNOQUEUE)) |
546 | 546 | OnShowqueue(); |
547 | | |
| 547 | |
548 | 548 | m_nSecTimerID=SetTimer(1, 1000, 0); |
549 | | |
| 549 | |
550 | 550 | CString folder=COptions::GetOption(OPTION_DEFAULTFOLDER); |
551 | 551 | CFileStatus64 status; |
552 | 552 | if (folder!="") |
… |
… |
|
558 | 558 | folder+="\\"; |
559 | 559 | } |
560 | 560 | SetLocalFolder(folder); |
561 | | |
| 561 | |
562 | 562 | if (COptions::GetOptionVal(OPTION_ENABLEDEBUGMENU)) |
563 | 563 | { |
564 | 564 | CMenu *pMenu=GetMenu(); |
… |
… |
|
659 | 659 | TRACE0("Failed to create nested splitter\n"); |
660 | 660 | return FALSE; |
661 | 661 | } |
662 | | |
| 662 | |
663 | 663 | // add the second splitter pane - which is a nested splitter with 2 rows |
664 | 664 | numrows = 2 - m_nRemoteTreeViewLocation; |
665 | 665 | numcols = 1 + m_nRemoteTreeViewLocation; |
… |
… |
|
682 | 682 | m_pLocalViewHeader->m_pEdit = new CLocalComboCompletion; |
683 | 683 | m_pLocalViewHeader->m_pEdit->Create(CBS_AUTOHSCROLL|WS_CHILD|WS_VISIBLE|WS_VSCROLL|CBS_DROPDOWN|CBS_SORT, CRect(0,0,100,200), this, 0); |
684 | 684 | m_pLocalViewHeader->m_pEdit->InitStorage(10,1000); |
685 | | |
| 685 | |
686 | 686 | HFONT hFont = ( HFONT )GetStockObject(DEFAULT_GUI_FONT); |
687 | 687 | CFont *font=CFont::FromHandle(hFont); |
688 | 688 | m_pLocalViewHeader->m_pEdit->SetFont(font); |
689 | 689 | |
690 | 690 | m_pLocalViewHeader->m_pLabelBackground=new CStatic; |
691 | 691 | m_pLocalViewHeader->m_pLabelBackground->Create(_T(""), WS_CHILD|WS_VISIBLE, CRect(1, 1, 0, 0), this); |
692 | | |
| 692 | |
693 | 693 | CString str; |
694 | 694 | str.LoadString(IDS_VIEWLABEL_LOCAL); |
695 | 695 | str=" " + str + " "; |
… |
… |
|
698 | 698 | m_pLocalViewHeader->m_pLabel->SetFont(font); |
699 | 699 | m_pLocalViewHeader->m_LabelTextSize.cx=m_pLocalViewHeader->m_LabelTextSize.cy=-1; |
700 | 700 | CDC *pDC=m_pLocalViewHeader->m_pLabel->GetDC(); |
701 | | |
| 701 | |
702 | 702 | CFont *pOldFont=pDC->SelectObject(font); |
703 | 703 | GetTextExtentPoint32( pDC->GetSafeHdc(), str, str.GetLength(), &m_pLocalViewHeader->m_LabelTextSize ); |
704 | 704 | pDC->SelectObject(pOldFont); |
705 | | |
| 705 | |
706 | 706 | m_pLocalViewHeader->m_pLabel->ReleaseDC(pDC); |
707 | | |
| 707 | |
708 | 708 | //Create the remote view header |
709 | 709 | m_pRemoteViewHeader=new t_RemoteViewHeader; |
710 | 710 | memset(m_pRemoteViewHeader, 0, sizeof(t_RemoteViewHeader)); |
… |
… |
|
719 | 719 | |
720 | 720 | m_pRemoteViewHeader->m_pLabelBackground=new CStatic; |
721 | 721 | m_pRemoteViewHeader->m_pLabelBackground->Create(_T(""),WS_CHILD|WS_VISIBLE,CRect(1, 1, 0, 0), this); |
722 | | |
| 722 | |
723 | 723 | str.LoadString(IDS_VIEWLABEL_REMOTE); |
724 | 724 | str=" " + str + " "; |
725 | 725 | m_pRemoteViewHeader->m_pLabel=new CStatic; |
… |
… |
|
727 | 727 | m_pRemoteViewHeader->m_pLabel->SetFont(font); |
728 | 728 | m_pRemoteViewHeader->m_LabelTextSize.cx=m_pRemoteViewHeader->m_LabelTextSize.cy=-1; |
729 | 729 | pDC=m_pRemoteViewHeader->m_pLabel->GetDC(); |
730 | | |
| 730 | |
731 | 731 | pOldFont=pDC->SelectObject(font); |
732 | 732 | GetTextExtentPoint32( pDC->GetSafeHdc(), str, str.GetLength(), &m_pRemoteViewHeader->m_LabelTextSize ); |
733 | 733 | pDC->SelectObject(pOldFont); |
734 | | |
| 734 | |
735 | 735 | m_pRemoteViewHeader->m_pLabel->ReleaseDC(pDC); |
736 | | |
| 736 | |
737 | 737 | // now create the two views inside the nested splitter |
738 | | |
| 738 | |
739 | 739 | if (!m_wndLocalSplitter.CreateView(0, 0, |
740 | 740 | RUNTIME_CLASS(CLocalView), CSize(300, 145), pContext)) |
741 | 741 | { |
742 | 742 | TRACE0("Failed to create third pane\n"); |
743 | 743 | return FALSE; |
744 | 744 | } |
745 | | |
| 745 | |
746 | 746 | int row = 1 - m_nLocalTreeViewLocation; |
747 | 747 | int col = m_nLocalTreeViewLocation; |
748 | 748 | if (!m_wndLocalSplitter.CreateView(row, col, |
… |
… |
|
753 | 753 | } |
754 | 754 | |
755 | 755 | |
756 | | |
| 756 | |
757 | 757 | //Now create the ftp view |
758 | 758 | |
759 | 759 | if (!m_wndRemoteSplitter.CreateView(0, 0, |
… |
… |
|
774 | 774 | |
775 | 775 | GetLocalPane()->m_pOwner=this; |
776 | 776 | GetLocalPane2()->m_pOwner=this; |
777 | | |
| 777 | |
778 | 778 | initialized=1; |
779 | | |
| 779 | |
780 | 780 | PostMessage(WM_FILEZILLA_PROCESSCMDLINE); |
781 | 781 | |
782 | 782 | m_nLocalListViewStyle=COptions::GetOptionVal(OPTION_LOCALLISTVIEWSTYLE); |
783 | 783 | m_nRemoteListViewStyle=COptions::GetOptionVal(OPTION_REMOTELISTVIEWSTYLE); |
784 | 784 | GetFtpPane()->m_pListCtrl->SetListStyle(m_nRemoteListViewStyle); |
785 | | GetLocalPane2()->m_pListCtrl->SetListStyle(m_nLocalListViewStyle); |
| 785 | GetLocalPane2()->m_pListCtrl->SetListStyle(m_nLocalListViewStyle); |
786 | 786 | m_nHideLocalColumns=COptions::GetOptionVal(OPTION_HIDELOCALCOLUMNS); |
787 | 787 | GetLocalPane2()->m_pListCtrl->UpdateColumns(m_nHideLocalColumns); |
788 | 788 | m_nHideRemoteColumns=COptions::GetOptionVal(OPTION_HIDEREMOTECOLUMNS); |
… |
… |
|
793 | 793 | |
794 | 794 | ////////////////// |
795 | 795 | // Helper function to register a new window class based on an already |
796 | | // existing window class, but with a different name and icon. |
| 796 | // existing window class, but with a different name and icon. |
797 | 797 | // Returns new name if successful; otherwise NULL. |
798 | 798 | // |
799 | 799 | static LPCTSTR RegisterSimilarClass(LPCTSTR lpszNewClassName, |
… |
… |
|
821 | 821 | |
822 | 822 | // Static class member holds window class name |
823 | 823 | // (NULL if not registered yet). |
824 | | // |
| 824 | // |
825 | 825 | LPCTSTR CMainFrame::s_winClassName = NULL; |
826 | 826 | |
827 | 827 | BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs) |
828 | 828 | { |
829 | 829 | if( !CFrameWnd::PreCreateWindow(cs) ) |
830 | 830 | return FALSE; |
831 | | |
| 831 | |
832 | 832 | cs.lpszClass = AfxRegisterWndClass(0); |
833 | | |
| 833 | |
834 | 834 | //Change the window class name |
835 | | if (s_winClassName==NULL) |
| 835 | if (s_winClassName==NULL) |
836 | 836 | { |
837 | 837 | // One-time initialization: register the class |
838 | 838 | // |
839 | | s_winClassName = RegisterSimilarClass(_T("FileZilla Main Window"), |
| 839 | s_winClassName = RegisterSimilarClass(_T("FileZilla Main Window"), |
840 | 840 | cs.lpszClass, IDR_MAINFRAME); |
841 | 841 | if (!s_winClassName) |
842 | 842 | return FALSE; |
… |
… |
|
865 | 865 | ///////////////////////////////////////////////////////////////////////////// |
866 | 866 | // CMainFrame Nachrichten-Handler |
867 | 867 | |
868 | | void CMainFrame::OnQuickConnect() |
| 868 | void CMainFrame::OnQuickConnect() |
869 | 869 | { |
870 | 870 | ProcessQuickconnect(FALSE); |
871 | 871 | } |
… |
… |
|
966 | 966 | } |
967 | 967 | } |
968 | 968 | |
969 | | void CMainFrame::OnSize(UINT nType, int cx, int cy) |
| 969 | void CMainFrame::OnSize(UINT nType, int cx, int cy) |
970 | 970 | { |
971 | 971 | if (m_wndStatusBar.GetSafeHwnd()) |
972 | 972 | { |
… |
… |
|
1000 | 1000 | |
1001 | 1001 | // Reposition the progress control correctly! |
1002 | 1002 | m_ProgressCtrl.SetWindowPos(&wndTop, rc.left, rc.top, rc.right - rc.left, |
1003 | | rc.bottom - rc.top, 0); |
| 1003 | rc.bottom - rc.top, 0); |
1004 | 1004 | |
1005 | 1005 | m_wndStatusBar.GetItemRect(m_wndStatusBar.CommandToIndex(ID_INDICATOR_RECVLED), &rc); |
1006 | 1006 | |
1007 | 1007 | // Reposition the first LED correctly! |
1008 | 1008 | m_RecvLed.SetWindowPos(&wndTop, rc.left, rc.top+1, rc.right - rc.left, |
1009 | | rc.bottom - rc.top, 0); |
| 1009 | rc.bottom - rc.top, 0); |
1010 | 1010 | |
1011 | 1011 | m_wndStatusBar.GetItemRect(m_wndStatusBar.CommandToIndex(ID_INDICATOR_SENDLED), &rc); |
1012 | | |
| 1012 | |
1013 | 1013 | // Reposition the second LED correctly! |
1014 | 1014 | m_SendLed.SetWindowPos(&wndTop, rc.left, rc.top+1, rc.right - rc.left+15, |
1015 | | rc.bottom - rc.top, SWP_SHOWWINDOW); |
1016 | | |
| 1015 | rc.bottom - rc.top, SWP_SHOWWINDOW); |
| 1016 | |
1017 | 1017 | if (m_pSecureIconCtrl) |
1018 | 1018 | { |
1019 | 1019 | m_wndStatusBar.GetItemRect(m_wndStatusBar.CommandToIndex(ID_INDICATOR_SECURESERVER), &rc); |
1020 | 1020 | rc.left=rc.right-16; |
1021 | | |
| 1021 | |
1022 | 1022 | m_pSecureIconCtrl->MoveWindow(&rc); |
1023 | 1023 | } |
1024 | 1024 | } |
1025 | | |
| 1025 | |
1026 | 1026 | } |
1027 | 1027 | |
1028 | 1028 | void CMainFrame::SetStatusbarText(int nIndex,CString str) |
… |
… |
|
1030 | 1030 | m_wndStatusBar.GetStatusBarCtrl().SetText(str,nIndex,0); |
1031 | 1031 | HFONT hFont = (HFONT)m_wndStatusBar.SendMessage(WM_GETFONT); |
1032 | 1032 | if (str=="") |
1033 | | str.LoadString(m_wndStatusBar.GetItemID(nIndex)); |
| 1033 | str.LoadString(m_wndStatusBar.GetItemID(nIndex)); |
1034 | 1034 | CClientDC dcScreen(NULL); |
1035 | 1035 | HGDIOBJ hOldFont = NULL; |
1036 | 1036 | if (hFont != NULL) |
… |
… |
|
1044 | 1044 | //m_wndStatusBar.SetPaneInfo(nIndex,nID,nStyle,cx); |
1045 | 1045 | RECT rc; |
1046 | 1046 | m_wndStatusBar.GetItemRect(m_wndStatusBar.CommandToIndex(ID_INDICATOR_PROGRESS_PANE), &rc); |
1047 | | |
| 1047 | |
1048 | 1048 | // Reposition the progress control correctly! |
1049 | 1049 | m_ProgressCtrl.SetWindowPos(&wndTop, rc.left, rc.top, rc.right - rc.left, |
1050 | | rc.bottom - rc.top, 0); |
| 1050 | rc.bottom - rc.top, 0); |
1051 | 1051 | } |
1052 | 1052 | if (hOldFont != NULL) |
1053 | 1053 | dcScreen.SelectObject(hOldFont); |
… |
… |
|
1071 | 1071 | str2.Format(_T("%d:%02d:%02d"), status->timeelapsed/3600, (status->timeelapsed/60)%60, status->timeelapsed%60); |
1072 | 1072 | str.Format(IDS_STATUSBAR_ELAPSED,str2); |
1073 | 1073 | SetStatusbarText(m_wndStatusBar.CommandToIndex(ID_INDICATOR_ELAPSEDTIME),str); |
1074 | | |
| 1074 | |
1075 | 1075 | if (status->timeleft!=-1) |
1076 | 1076 | { |
1077 | 1077 | str2.Format(_T("%d:%02d:%02d"), status->timeleft/3600, (status->timeleft/60)%60, status->timeleft%60); |
1078 | 1078 | str.Format(IDS_STATUSBAR_LEFT,str2); |
1079 | | SetStatusbarText(m_wndStatusBar.CommandToIndex(ID_INDICATOR_TIMELEFT),str); |
| 1079 | SetStatusbarText(m_wndStatusBar.CommandToIndex(ID_INDICATOR_TIMELEFT),str); |
1080 | 1080 | } |
1081 | 1081 | else |
1082 | 1082 | SetStatusbarText(m_wndStatusBar.CommandToIndex(ID_INDICATOR_TIMELEFT),""); |
… |
… |
|
1144 | 1144 | } |
1145 | 1145 | else |
1146 | 1146 | transferfile.nType = m_nTransferType; |
1147 | | |
| 1147 | |
1148 | 1148 | localdir.TrimRight( _T("\\") ); |
1149 | 1149 | if (!nOpen) |
1150 | 1150 | { |
… |
… |
|
1186 | 1186 | transferfile.remotepath = ((CFtpListCtrl *)GetFtpPane()->GetListCtrl())->GetCurrentDirectory(); |
1187 | 1187 | transferfile.remotepath.AddSubdirs(subdir); |
1188 | 1188 | } |
1189 | | |
| 1189 | |
1190 | 1190 | transferfile.get = get; |
1191 | 1191 | if (GetFtpPane()->GetTransferfile(transferfile)) |
1192 | 1192 | { |
… |
… |
|
1194 | 1194 | { |
1195 | 1195 | CFileStatus64 status; |
1196 | 1196 | BOOL res = GetStatus64(transferfile.localfile, status); |
1197 | | |
| 1197 | |
1198 | 1198 | if (!GetLength64(transferfile.localfile, transferfile.size)) |
1199 | 1199 | return; |
1200 | 1200 | } |
… |
… |
|
1233 | 1233 | } |
1234 | 1234 | } |
1235 | 1235 | |
1236 | | void CMainFrame::OnUpdateShowtree(CCmdUI* pCmdUI) |
| 1236 | void CMainFrame::OnUpdateShowtree(CCmdUI* pCmdUI) |
1237 | 1237 | { |
1238 | 1238 | pCmdUI->SetCheck(m_bShowTree); |
1239 | 1239 | } |
1240 | 1240 | |
1241 | | void CMainFrame::OnShowtree() |
| 1241 | void CMainFrame::OnShowtree() |
1242 | 1242 | { |
1243 | 1243 | if (!m_bShowTree) |
1244 | 1244 | { |
… |
… |
|
1247 | 1247 | m_wndLocalSplitter.ShowCol(0); |
1248 | 1248 | else |
1249 | 1249 | m_wndLocalSplitter.ShowRow(0); |
1250 | | |
| 1250 | |
1251 | 1251 | m_bShowTree=TRUE; |
1252 | 1252 | m_pLocalViewHeader->bTreeHidden=FALSE; |
1253 | 1253 | } |
… |
… |
|
1264 | 1264 | GetLocalPane2()->UpdateViewHeader(); |
1265 | 1265 | } |
1266 | 1266 | |
1267 | | void CMainFrame::OnEditSettings() |
| 1267 | void CMainFrame::OnEditSettings() |
1268 | 1268 | { |
1269 | 1269 | if (COptions::GetOptionVal(OPTION_REMEMBERVIEWS)) |
1270 | 1270 | { |
… |
… |
|
1320 | 1320 | m_nHideRemoteColumns=COptions::GetOptionVal(OPTION_HIDEREMOTECOLUMNS); |
1321 | 1321 | GetFtpPane()->m_pListCtrl->UpdateColumns(m_nHideRemoteColumns); |
1322 | 1322 | GetFtpPane()->EnableStatusbar(COptions::GetOptionVal(OPTION_SHOWREMOTESTATUSBAR)); |
1323 | | |
1324 | | |
| 1323 | |
| 1324 | |
1325 | 1325 | if (m_bShowTree) |
1326 | 1326 | GetLocalPane()->UpdateViewHeader(); |
1327 | 1327 | GetLocalPane2()->UpdateViewHeader(); |
1328 | | |
| 1328 | |
1329 | 1329 | if (m_bShowRemoteTree) |
1330 | 1330 | GetFtpTreePane()->UpdateViewHeader(); |
1331 | 1331 | GetFtpPane()->UpdateViewHeader(); |
1332 | | |
| 1332 | |
1333 | 1333 | CMenu *menu2=GetMenu(); |
1334 | 1334 | CMenu *pMenu=new CMenu; |
1335 | 1335 | if (menu2->m_hMenu!=m_hMenuDefault) |
… |
… |
|
1379 | 1379 | pMenu->RemoveMenu(ID_MENU_DEBUG, MF_BYCOMMAND); |
1380 | 1380 | } |
1381 | 1381 | } |
1382 | | |
| 1382 | |
1383 | 1383 | SetMenu(pMenu); |
1384 | | |
| 1384 | |
1385 | 1385 | CString str; |
1386 | | |
| 1386 | |
1387 | 1387 | m_wndQuickconnectButton.ShowWindow(SW_HIDE); |
1388 | 1388 | m_wndQuickconnectButton.SetParent(this); |
1389 | 1389 | delete m_pWndReBar; |
… |
… |
|
1391 | 1391 | delete m_pWndToolBar; |
1392 | 1392 | VERIFY(CreateToolbars()); |
1393 | 1393 | m_wndQuickconnectButton.SetParent(m_pWndDlgBar); |
1394 | | |
| 1394 | |
1395 | 1395 | m_wndQuickconnectButton.SetDlgCtrlID(IDCANCEL); |
1396 | 1396 | CString title = "Quick&connect"; |
1397 | | |
| 1397 | |
1398 | 1398 | CWnd *pDlgItem = m_pWndDlgBar->GetDlgItem(IDOK); |
1399 | 1399 | if (pDlgItem) |
1400 | 1400 | pDlgItem->GetWindowText(title); |
… |
… |
|
1407 | 1407 | m_wndQuickconnectButton.MoveWindow(rect); |
1408 | 1408 | m_wndQuickconnectButton.SetDlgCtrlID(IDOK); |
1409 | 1409 | m_wndQuickconnectButton.ShowWindow(SW_SHOW); |
1410 | | |
| 1410 | |
1411 | 1411 | VERIFY(m_wndQuickconnectButton.RemoveMenuItem(1)); |
1412 | 1412 | VERIFY(m_wndQuickconnectButton.RemoveMenuItem(0)); |
1413 | 1413 | VERIFY(m_wndQuickconnectButton.InsertMenuItem(0, ID_QUICKCONNECTBAR_MENU_BYPASS, 0)); |
… |
… |
|
1497 | 1497 | CFileExistsDlg::SetOverwriteSettings(COptions::GetOptionVal(OPTION_FILEEXISTSACTION) - 1); |
1498 | 1498 | } |
1499 | 1499 | |
1500 | | void CMainFrame::OnSitemanager() |
| 1500 | void CMainFrame::OnSitemanager() |
1501 | 1501 | { |
1502 | 1502 | CSiteManager dlg; |
1503 | 1503 | int res = dlg.DoModal(); |
… |
… |
|
1505 | 1505 | ParseSite(dlg.m_LastSite); |
1506 | 1506 | } |
1507 | 1507 | |
1508 | | void CMainFrame::OnCancel() |
| 1508 | void CMainFrame::OnCancel() |
1509 | 1509 | { |
1510 | 1510 | int res=AfxMessageBox(IDS_QUESTION_CANCELOPERATION,MB_YESNO|MB_ICONQUESTION); |
1511 | 1511 | if (res==IDYES) |
1512 | 1512 | m_pCommandQueue->Cancel(); |
1513 | 1513 | } |
1514 | 1514 | |
1515 | | void CMainFrame::OnUpdateCancelbutton(CCmdUI* pCmdUI) |
| 1515 | void CMainFrame::OnUpdateCancelbutton(CCmdUI* pCmdUI) |
1516 | 1516 | { |
1517 | 1517 | pCmdUI->Enable(m_pCommandQueue->IsBusy()); |
1518 | 1518 | } |
1519 | 1519 | |
1520 | | void CMainFrame::OnShowqueue() |
| 1520 | void CMainFrame::OnShowqueue() |
1521 | 1521 | { |
1522 | 1522 | if (!m_bShowQueue) |
1523 | 1523 | { |
1524 | 1524 | m_bShowQueue=TRUE; |
1525 | | m_wndVertSplitter.ShowRow(2); |
| 1525 | m_wndVertSplitter.ShowRow(2); |
1526 | 1526 | } |
1527 | 1527 | else |
1528 | 1528 | { |
… |
… |
|
1530 | 1530 | m_bShowQueue=FALSE; |
1531 | 1531 | m_wndVertSplitter.HideRow(2,1); |
1532 | 1532 | } |
1533 | | |
| 1533 | |
1534 | 1534 | } |
1535 | 1535 | |
1536 | | void CMainFrame::OnUpdateShowqueue(CCmdUI* pCmdUI) |
| 1536 | void CMainFrame::OnUpdateShowqueue(CCmdUI* pCmdUI) |
1537 | 1537 | { |
1538 | 1538 | pCmdUI->SetCheck(m_bShowQueue); |
1539 | 1539 | } |
1540 | 1540 | |
1541 | | void CMainFrame::OnClose() |
| 1541 | void CMainFrame::OnClose() |
1542 | 1542 | { |
1543 | 1543 | ShowWindow(SW_HIDE); |
1544 | 1544 | if (!m_bQuit) |
1545 | 1545 | { |
1546 | 1546 | if (!GetQueuePane()->GetListCtrl()->DoClose()) |
1547 | 1547 | return; |
1548 | | |
| 1548 | |
1549 | 1549 | m_bQuit=TRUE; |
1550 | 1550 | |
1551 | 1551 | m_pFileZillaApi->Destroy(); |
… |
… |
|
1608 | 1608 | m_wndRemoteSplitter.GetColumnInfoEx(0,cy4,tmp); |
1609 | 1609 | else |
1610 | 1610 | m_wndRemoteSplitter.GetRowInfoEx(0,cy4,tmp); |
1611 | | m_wndMainSplitter.GetColumnInfo(m_bSwitchPaneLayout?1:0, cx, tmp); |
| 1611 | m_wndMainSplitter.GetColumnInfo(m_bSwitchPaneLayout?1:0, cx, tmp); |
1612 | 1612 | str.Format(_T("%d %d %d %d %d"), cy1, cy2, cy3, cy4, cx); |
1613 | 1613 | COptions::SetOption(OPTION_LASTSPLITTERSIZE, str); |
1614 | 1614 | } |
… |
… |
|
1625 | 1625 | delete m_pMinTrayBtn; |
1626 | 1626 | m_pMinTrayBtn = NULL; |
1627 | 1627 | CFrameWnd::OnClose(); |
1628 | | |
| 1628 | |
1629 | 1629 | } |
1630 | 1630 | |
1631 | | void CMainFrame::OnProcessQueue() |
| 1631 | void CMainFrame::OnProcessQueue() |
1632 | 1632 | { |
1633 | 1633 | if (GetQueuePane()->GetListCtrl()->DoProcessQueue()) |
1634 | 1634 | GetQueuePane()->GetListCtrl()->StopProcessing(); |
… |
… |
|
1636 | 1636 | TransferQueue(1); |
1637 | 1637 | } |
1638 | 1638 | |
1639 | | void CMainFrame::OnUpdateProcessQueue(CCmdUI* pCmdUI) |
| 1639 | void CMainFrame::OnUpdateProcessQueue(CCmdUI* pCmdUI) |
1640 | 1640 | { |
1641 | 1641 | pCmdUI->Enable(!((CQueueCtrl *)GetQueuePane()->GetListCtrl())->IsQueueEmpty()); |
1642 | 1642 | pCmdUI->SetCheck(((CQueueCtrl *)GetQueuePane()->GetListCtrl())->DoProcessQueue()?1:0); |
… |
… |
|
1648 | 1648 | ((CQueueCtrl *)GetQueuePane()->GetListCtrl())->TransferQueue(nPriority); |
1649 | 1649 | } |
1650 | 1650 | |
1651 | | void CMainFrame::OnToolbarDisconnect() |
| 1651 | void CMainFrame::OnToolbarDisconnect() |
1652 | 1652 | { |
1653 | 1653 | m_pCommandQueue->Cancel(); |
1654 | 1654 | m_pCommandQueue->Disconnect(); |
1655 | 1655 | } |
1656 | 1656 | |
1657 | | void CMainFrame::OnUpdateToolbarDisconnect(CCmdUI* pCmdUI) |
| 1657 | void CMainFrame::OnUpdateToolbarDisconnect(CCmdUI* pCmdUI) |
1658 | 1658 | { |
1659 | | pCmdUI->Enable(m_pCommandQueue->IsConnected() && !m_pCommandQueue->IsBusy()); |
| 1659 | pCmdUI->Enable(m_pCommandQueue->IsConnected() && !m_pCommandQueue->IsBusy()); |
1660 | 1660 | } |
1661 | 1661 | |
1662 | | void CMainFrame::OnToolbarRefresh() |
| 1662 | void CMainFrame::OnToolbarRefresh() |
1663 | 1663 | { |
1664 | 1664 | RefreshViews(); |
1665 | 1665 | } |
… |
… |
|
1670 | 1670 | { |
1671 | 1671 | if (!m_pCommandQueue->IsBusy() && m_pCommandQueue->IsConnected()) |
1672 | 1672 | ((CFtpListCtrl *)GetFtpPane()->GetListCtrl())->Refresh(); |
1673 | | |
| 1673 | |
1674 | 1674 | } |
1675 | 1675 | if (side!=2) |
1676 | 1676 | { |
… |
… |
|
1681 | 1681 | } |
1682 | 1682 | } |
1683 | 1683 | |
1684 | | void CMainFrame::OnToolbarReconnect() |
| 1684 | void CMainFrame::OnToolbarReconnect() |
1685 | 1685 | { |
1686 | 1686 | if (m_pCommandQueue->IsBusy() || m_pCommandQueue->IsConnected()) |
1687 | 1687 | return; |
1688 | | |
| 1688 | |
1689 | 1689 | t_server server; |
1690 | 1690 | CServerPath path; |
1691 | 1691 | if (m_pCommandQueue->GetLastServer(server, path)) |
… |
… |
|
1698 | 1698 | } |
1699 | 1699 | } |
1700 | 1700 | |
1701 | | void CMainFrame::OnUpdateToolbarReconnect(CCmdUI* pCmdUI) |
| 1701 | void CMainFrame::OnUpdateToolbarReconnect(CCmdUI* pCmdUI) |
1702 | 1702 | { |
1703 | 1703 | BOOL enable = FALSE; |
1704 | 1704 | if (m_pCommandQueue->IsConnected() || m_pCommandQueue->IsBusy()) |
… |
… |
|
1710 | 1710 | host = COptions::GetOption(OPTION_LASTSERVERHOST); |
1711 | 1711 | port = COptions::GetOptionVal(OPTION_LASTSERVERPORT); |
1712 | 1712 | user = COptions::GetOption(OPTION_LASTSERVERUSER); |
1713 | | //pass=crypt.decrypt(COptions::GetOption(OPTION_LASTSERVERPASS)); |
| 1713 | //pass=crypt.decrypt(COptions::GetOption(OPTION_LASTSERVERPASS)); |
1714 | 1714 | if ((host != "")&&(port != 0))//&&(user!="")) |
1715 | 1715 | enable = TRUE; |
1716 | | |
| 1716 | |
1717 | 1717 | pCmdUI->Enable(enable); |
1718 | 1718 | } |
1719 | | |
| 1719 | |
1720 | 1720 | } |
1721 | 1721 | |
1722 | 1722 | CImageList* CMainFrame::CreateDragImageEx(CListCtrl *pList, LPPOINT lpPoint) |
… |
… |
|
1744 | 1744 | while ((nIndex = pList->GetNextItem(nIndex, LVNI_SELECTED)) != -1) |
1745 | 1745 | { |
1746 | 1746 | if (nIndex > nBottomIndex) |
1747 | | break; |
| 1747 | break; |
1748 | 1748 | |
1749 | 1749 | CRect rectItem; |
1750 | 1750 | pList->GetItemRect(nIndex, rectItem, LVIR_BOUNDS); |
1751 | 1751 | |
1752 | | if (rectItem.left < 0) |
| 1752 | if (rectItem.left < 0) |
1753 | 1753 | rectItem.left = 0; |
1754 | 1754 | |
1755 | 1755 | if (rectItem.right > nWidth) |
… |
… |
|
1757 | 1757 | |
1758 | 1758 | rectComplete.UnionRect(rectComplete, rectItem); |
1759 | 1759 | } |
1760 | | |
| 1760 | |
1761 | 1761 | // Create memory device context |
1762 | 1762 | CClientDC dcClient(this); |
1763 | 1763 | CDC dcMem; |
… |
… |
|
1786 | 1786 | // Paint each DragImage in the DC |
1787 | 1787 | nIndex = pList->GetTopIndex() - 1; |
1788 | 1788 | while ((nIndex = pList->GetNextItem(nIndex, LVNI_SELECTED)) != -1) |
1789 | | { |
| 1789 | { |
1790 | 1790 | if (nIndex > nBottomIndex) |
1791 | 1791 | break; |
1792 | 1792 | |
… |
… |
|
1798 | 1798 | item.cchTextMax = 999; |
1799 | 1799 | |
1800 | 1800 | pList->GetItem(&item); |
1801 | | |
| 1801 | |
1802 | 1802 | // Draw the icon |
1803 | 1803 | CImageList* pSingleImageList = pList->GetImageList((dwStyle == LVS_ICON)?LVSIL_NORMAL:LVSIL_SMALL); |
1804 | 1804 | if (pSingleImageList) |
… |
… |
|
1808 | 1808 | |
1809 | 1809 | IMAGEINFO info; |
1810 | 1810 | pSingleImageList->GetImageInfo(item.iImage, &info); |
1811 | | CPoint p((rectIcon.left - rectComplete.left + rectIcon.right - rectComplete.left) / 2 - (info.rcImage.right - info.rcImage.left) / 2, |
| 1811 | CPoint p((rectIcon.left - rectComplete.left + rectIcon.right - rectComplete.left) / 2 - (info.rcImage.right - info.rcImage.left) / 2, |
1812 | 1812 | (rectIcon.top - rectComplete.top + rectIcon.bottom - rectComplete.top) / 2 - (info.rcImage.bottom - info.rcImage.top) / 2 + ((dwStyle == LVS_ICON)?2:0)); |
1813 | 1813 | |
1814 | | pSingleImageList->Draw( &dcMem, item.iImage, |
| 1814 | pSingleImageList->Draw( &dcMem, item.iImage, |
1815 | 1815 | p, |
1816 | 1816 | ILD_TRANSPARENT); |
1817 | 1817 | } |
… |
… |
|
1825 | 1825 | textRect.bottom -= rectComplete.top + 1; |
1826 | 1826 | textRect.left -= rectComplete.left - 2; |
1827 | 1827 | textRect.right -= rectComplete.left; |
1828 | | |
| 1828 | |
1829 | 1829 | DWORD flags = DT_END_ELLIPSIS | DT_MODIFYSTRING; |
1830 | 1830 | if (dwStyle == LVS_ICON) |
1831 | 1831 | flags |= DT_CENTER | DT_WORDBREAK; |
… |
… |
|
1854 | 1854 | CImageList* CMainFrame::CreateDragImageEx(CTreeCtrl *pTree, LPPOINT lpPoint) |
1855 | 1855 | { |
1856 | 1856 | HTREEITEM hItem; |
1857 | | |
| 1857 | |
1858 | 1858 | if (pTree == GetLocalPane()->GetTreeCtrl()) |
1859 | 1859 | hItem = reinterpret_cast<CDirTreeCtrl *>(pTree)->m_hDragSource; |
1860 | 1860 | else |
… |
… |
|
1873 | 1873 | CRect rectItem; |
1874 | 1874 | pTree->GetItemRect(hItem, rectItem, FALSE); |
1875 | 1875 | |
1876 | | if (rectItem.left < 0) |
| 1876 | if (rectItem.left < 0) |
1877 | 1877 | rectItem.left = 0; |
1878 | 1878 | |
1879 | 1879 | if (rectItem.right > (nWidth + 50)) |
1880 | 1880 | rectItem.right = nWidth + 50; |
1881 | 1881 | rectComplete.UnionRect(rectComplete, rectItem); |
1882 | 1882 | |
1883 | | |
| 1883 | |
1884 | 1884 | // Create memory device context |
1885 | 1885 | CClientDC dcClient(this); |
1886 | 1886 | CDC dcMem; |
… |
… |
|
1914 | 1914 | tvItem.cchTextMax = 999; |
1915 | 1915 | |
1916 | 1916 | pTree->GetItem(&tvItem); |
1917 | | |
| 1917 | |
1918 | 1918 | // Draw the icon |
1919 | 1919 | CImageList* pSingleImageList = pTree->GetImageList(TVSIL_NORMAL); |
1920 | 1920 | if (pSingleImageList) |
… |
… |
|
1924 | 1924 | |
1925 | 1925 | IMAGEINFO info; |
1926 | 1926 | pSingleImageList->GetImageInfo(tvItem.iImage, &info); |
1927 | | CPoint p(rectIcon.left - rectComplete.left - (info.rcImage.right - info.rcImage.left) - 3, |
| 1927 | CPoint p(rectIcon.left - rectComplete.left - (info.rcImage.right - info.rcImage.left) - 3, |
1928 | 1928 | rectIcon.top - rectComplete.top); |
1929 | | pSingleImageList->Draw( &dcMem, tvItem.iImage, |
| 1929 | pSingleImageList->Draw( &dcMem, tvItem.iImage, |
1930 | 1930 | p, |
1931 | 1931 | ILD_TRANSPARENT); |
1932 | 1932 | } |
… |
… |
|
1940 | 1940 | textRect.bottom -= rectComplete.top + 1; |
1941 | 1941 | textRect.left -= rectComplete.left - 2; |
1942 | 1942 | textRect.right -= rectComplete.left; |
1943 | | |
| 1943 | |
1944 | 1944 | DWORD flags = DT_END_ELLIPSIS | DT_MODIFYSTRING; |
1945 | 1945 | dcMem.DrawText(text, -1, textRect, flags); |
1946 | | |
| 1946 | |
1947 | 1947 | dcMem.SelectObject(oldFont); |
1948 | 1948 | |
1949 | 1949 | dcMem.SelectObject(pOldMemDCBitmap); |
… |
… |
|
1963 | 1963 | return pCompleteImageList; |
1964 | 1964 | } |
1965 | 1965 | |
1966 | | void CMainFrame::OnBegindrag(CWnd *pDragWnd, CPoint point) |
| 1966 | void CMainFrame::OnBegindrag(CWnd *pDragWnd, CPoint point) |
1967 | 1967 | { |
1968 | 1968 | POINT pt = {0}; |
1969 | 1969 | if (pDragWnd == GetLocalPane2()->GetListCtrl() || |
… |
… |
|
1987 | 1987 | CPoint ptStart = point; |
1988 | 1988 | ptStart -= pt; |
1989 | 1989 | m_pDragImage->BeginDrag(0, ptStart); |
1990 | | CRect rect; |
1991 | | ::GetWindowRect(pDragWnd->m_hWnd, &rect); |
| 1990 | CRect rect; |
| 1991 | ::GetWindowRect(pDragWnd->m_hWnd, &rect); |
1992 | 1992 | CPoint pt2 = point; |
1993 | | pt2.Offset(rect.left+8, rect.top+8); |
1994 | | m_pDragImage->DragEnter(NULL, pt2); |
| 1993 | pt2.Offset(rect.left+8, rect.top+8); |
| 1994 | m_pDragImage->DragEnter(NULL, pt2); |
1995 | 1995 | SetCapture(); |
1996 | 1996 | } |
1997 | 1997 | |
1998 | | void CMainFrame::OnMouseMove(UINT nFlags, CPoint point) |
| 1998 | void CMainFrame::OnMouseMove(UINT nFlags, CPoint point) |
1999 | 1999 | { |
2000 | 2000 | if (m_pDragImage && m_pDragWnd) // In Drag&Drop mode ? |
2001 | 2001 | { |
… |
… |
|
2074 | 2074 | CFrameWnd::OnMouseMove(nFlags, point); |
2075 | 2075 | } |
2076 | 2076 | |
2077 | | void CMainFrame::OnLButtonUp(UINT nFlags, CPoint point) |
| 2077 | void CMainFrame::OnLButtonUp(UINT nFlags, CPoint point) |
2078 | 2078 | { |
2079 | 2079 | if (m_pDragImage && m_pDragWnd) // In Drag&Drop mode ? |
2080 | 2080 | { |
… |
… |
|
2085 | 2085 | CPoint pt(point); |
2086 | 2086 | ClientToScreen(&pt); |
2087 | 2087 | CWnd* m_pDropWnd = WindowFromPoint(pt); |
2088 | | |
2089 | | if (m_pDragWnd == GetLocalPane2()->GetListCtrl()) |
| 2088 | |
| 2089 | if (m_pDragWnd == GetLocalPane2()->GetListCtrl()) |
2090 | 2090 | { |
2091 | 2091 | if (m_pDropWnd == GetFtpPane()->GetListCtrl()) |
2092 | 2092 | { |
… |
… |
|
2114 | 2114 | ((CLocalFileListCtrl*)GetLocalPane2()->GetListCtrl())->OnDragEnd(3, pt); |
2115 | 2115 | } |
2116 | 2116 | } |
2117 | | else if (m_pDragWnd == GetLocalPane()->GetTreeCtrl()) |
| 2117 | else if (m_pDragWnd == GetLocalPane()->GetTreeCtrl()) |
2118 | 2118 | { |
2119 | 2119 | if (m_pDropWnd == GetFtpPane()->GetListCtrl()) |
2120 | 2120 | { |
… |
… |
|
2160 | 2160 | else if (m_pDragWnd == GetFtpTreePane()->GetTreeCtrl()) |
2161 | 2161 | { |
2162 | 2162 | if (m_pDropWnd == GetFtpTreePane()->GetTreeCtrl()) |
2163 | | reinterpret_cast<CFtpTreeCtrl *>(GetFtpTreePane()->GetTreeCtrl())->OnDragEnd(0, pt); |
| 2163 | reinterpret_cast<CFtpTreeCtrl *>(GetFtpTreePane()->GetTreeCtrl())->OnDragEnd(0, pt); |
2164 | 2164 | } |
2165 | | |
| 2165 | |
2166 | 2166 | reinterpret_cast<CFtpListCtrl *>(GetFtpPane()->GetListCtrl())->DragLeave(NULL); |
2167 | | reinterpret_cast<CFtpTreeCtrl *>(GetFtpTreePane()->GetTreeCtrl())->DragLeave(NULL); |
| 2167 | reinterpret_cast<CFtpTreeCtrl *>(GetFtpTreePane()->GetTreeCtrl())->DragLeave(NULL); |
2168 | 2168 | reinterpret_cast<CDirTreeCtrl *>(GetLocalPane()->GetTreeCtrl())->DragLeave(m_pDragImage); |
2169 | 2169 | reinterpret_cast<CLocalFileListCtrl *>(GetLocalPane2()->GetListCtrl())->DragLeave(m_pDragImage); |
2170 | 2170 | |
… |
… |
|
2174 | 2174 | m_pDragWnd = NULL; |
2175 | 2175 | m_DropTarget = _T(""); |
2176 | 2176 | } |
2177 | | |
| 2177 | |
2178 | 2178 | CFrameWnd::OnLButtonUp(nFlags, point); |
2179 | 2179 | } |
2180 | 2180 | |
… |
… |
|
2184 | 2184 | server.fwbypass=0; |
2185 | 2185 | server.bDontRememberPass = FALSE; |
2186 | 2186 | server.nServerType=0; |
2187 | | if (remote=="") |
| 2187 | if (remote=="") |
2188 | 2188 | { |
2189 | 2189 | remote.LoadString(IDS_ERRORMSG_HOSTNEEDED); |
2190 | 2190 | return FALSE; |
… |
… |
|
2219 | 2219 | } |
2220 | 2220 | else |
2221 | 2221 | pos=0; |
2222 | | |
| 2222 | |
2223 | 2223 | pos=remote.Find('/',pos); |
2224 | 2224 | CString rawpath; |
2225 | 2225 | if (pos!=-1) |
… |
… |
|
2266 | 2266 | |
2267 | 2267 | if (!server.port) |
2268 | 2268 | server.port=21; |
2269 | | |
| 2269 | |
2270 | 2270 | if (server.user=="") |
2271 | 2271 | { |
2272 | 2272 | BOOL bUseGSS=FALSE; |
2273 | 2273 | if (COptions::GetOptionVal(OPTION_USEGSS)) |
2274 | 2274 | { |
2275 | 2275 | USES_CONVERSION; |
2276 | | |
| 2276 | |
2277 | 2277 | CString GssServers=COptions::GetOption(OPTION_GSSSERVERS); |
2278 | 2278 | hostent *fullname=gethostbyname(T2CA(remote)); |
2279 | 2279 | CString host; |
… |
… |
|
2322 | 2322 | path.SetPath("/"); |
2323 | 2323 | server.host = remote; |
2324 | 2324 | remote = rawpath; |
2325 | | |
| 2325 | |
2326 | 2326 | return TRUE; |
2327 | 2327 | } |
2328 | 2328 | |
… |
… |
|
2338 | 2338 | if (cmdline[0]=='\"') |
2339 | 2339 | { |
2340 | 2340 | cmdline=cmdline.Mid(1); |
2341 | | int quote=cmdline.Find(_T("\"")); |
| 2341 | int quote=cmdline.Find(_T("\"")); |
2342 | 2342 | if (quote==-1) |
2343 | 2343 | { |
2344 | 2344 | ArgList.push_back(cmdline); |
… |
… |
|
2382 | 2382 | AfxMessageBox(IDS_ERRORMSG_CANTPARSECMDLINE); |
2383 | 2383 | return 0; |
2384 | 2384 | } |
2385 | | |
| 2385 | |
2386 | 2386 | if (server.bDontRememberPass) |
2387 | 2387 | { |
2388 | 2388 | CEnterSomething dlg(IDS_INPUTDIALOGTITLE_INPUTPASSWORD, IDS_INPUTDIALOGTEXT_INPUTPASSWORD, '*'); |
… |
… |
|
2434 | 2434 | |
2435 | 2435 | arg = ArgList.front(); |
2436 | 2436 | ArgList.pop_front(); |
2437 | | |
| 2437 | |
2438 | 2438 | CSiteManager dlg; |
2439 | 2439 | if (dlg.ImportAndShow(arg)==IDOK) |
2440 | 2440 | { |
… |
… |
|
2474 | 2474 | AfxMessageBox(IDS_ERRORMSG_CANTPARSECMDLINE); |
2475 | 2475 | return 0; |
2476 | 2476 | } |
2477 | | |
| 2477 | |
2478 | 2478 | t_transferfile transferfile; |
2479 | 2479 | transferfile.get=FALSE; |
2480 | 2480 | transferfile.localfile=localpath+"\\"+localfile; |
… |
… |
|
2519 | 2519 | transferfile.remotefile = arg; |
2520 | 2520 | } |
2521 | 2521 | } |
2522 | | |
| 2522 | |
2523 | 2523 | if (transferfile.server.bDontRememberPass) |
2524 | 2524 | { |
2525 | 2525 | CEnterSomething dlg(IDS_INPUTDIALOGTITLE_INPUTPASSWORD, IDS_INPUTDIALOGTEXT_INPUTPASSWORD, '*'); |
… |
… |
|
2528 | 2528 | transferfile.server.bDontRememberPass = FALSE; |
2529 | 2529 | transferfile.server.pass = dlg.m_String; |
2530 | 2530 | } |
2531 | | |
| 2531 | |
2532 | 2532 | GetQueuePane()->AddItem(transferfile, TRUE, 0); |
2533 | | |
| 2533 | |
2534 | 2534 | TransferQueue(2); |
2535 | 2535 | } |
2536 | 2536 | } |
… |
… |
|
2546 | 2546 | CString localpath=ArgList.front(); |
2547 | 2547 | ArgList.pop_front(); |
2548 | 2548 | localpath.TrimRight( _T("\\") ); |
2549 | | |
| 2549 | |
2550 | 2550 | t_server server; |
2551 | 2551 | CServerPath remotepath; |
2552 | | |
| 2552 | |
2553 | 2553 | if (!ParseURL(remotefile, server, remotepath, TRUE)) |
2554 | 2554 | { |
2555 | 2555 | AfxMessageBox(IDS_ERRORMSG_CANTPARSECMDLINE); |
2556 | 2556 | return 0; |
2557 | 2557 | } |
2558 | | |
| 2558 | |
2559 | 2559 | __int64 size=-1; |
2560 | | |
| 2560 | |
2561 | 2561 | t_transferfile transferfile; |
2562 | 2562 | transferfile.get=TRUE; |
2563 | 2563 | transferfile.localfile=localpath+"\\"+remotefile; |
… |
… |
|
2565 | 2565 | transferfile.remotepath=remotepath; |
2566 | 2566 | transferfile.server=server; |
2567 | 2567 | transferfile.size=size; |
2568 | | |
| 2568 | |
2569 | 2569 | transferfile.nType=m_nTransferType; |
2570 | 2570 | if (!m_nTransferType) |
2571 | 2571 | { |
… |
… |
|
2584 | 2584 | AsciiFiles = AsciiFiles.Mid(i + 1); |
2585 | 2585 | } |
2586 | 2586 | } |
2587 | | |
| 2587 | |
2588 | 2588 | if (!ArgList.empty()) |
2589 | 2589 | { |
2590 | 2590 | CString arg=ArgList.front(); |
… |
… |
|
2603 | 2603 | transferfile.localfile = localpath + _T("\\") + arg; |
2604 | 2604 | } |
2605 | 2605 | } |
2606 | | |
| 2606 | |
2607 | 2607 | if (transferfile.server.bDontRememberPass) |
2608 | 2608 | { |
2609 | 2609 | CEnterSomething dlg(IDS_INPUTDIALOGTITLE_INPUTPASSWORD, IDS_INPUTDIALOGTEXT_INPUTPASSWORD, '*'); |
… |
… |
|
2612 | 2612 | transferfile.server.bDontRememberPass = FALSE; |
2613 | 2613 | transferfile.server.pass = dlg.m_String; |
2614 | 2614 | } |
2615 | | |
| 2615 | |
2616 | 2616 | GetQueuePane()->AddItem(transferfile, TRUE, 0); |
2617 | | |
| 2617 | |
2618 | 2618 | TransferQueue(2); |
2619 | 2619 | } |
2620 | 2620 | else if (arg==_T("-close")) |
… |
… |
|
2639 | 2639 | return 0; |
2640 | 2640 | } |
2641 | 2641 | |
2642 | | void CMainFrame::OnCopytositemanager() |
| 2642 | void CMainFrame::OnCopytositemanager() |
2643 | 2643 | { |
2644 | 2644 | t_server server; |
2645 | 2645 | if (m_pFileZillaApi->GetCurrentServer(server)==FZ_REPLY_OK) |
… |
… |
|
2649 | 2649 | int res=dlg.AddAndShow(server); |
2650 | 2650 | if (res==IDOK) |
2651 | 2651 | ParseSite(dlg.m_LastSite); |
2652 | | } |
| 2652 | } |
2653 | 2653 | } |
2654 | 2654 | |
2655 | | void CMainFrame::OnUpdateCopytositemanager(CCmdUI* pCmdUI) |
| 2655 | void CMainFrame::OnUpdateCopytositemanager(CCmdUI* pCmdUI) |
2656 | 2656 | { |
2657 | | pCmdUI->Enable(m_pCommandQueue->IsConnected()); |
| 2657 | pCmdUI->Enable(m_pCommandQueue->IsConnected()); |
2658 | 2658 | } |
2659 | 2659 | |
2660 | 2660 | void CMainFrame::OnUpdateFileConnecttodefaultsite(CCmdUI* pCmdUI) |
… |
… |
|
2665 | 2665 | delete site; |
2666 | 2666 | } |
2667 | 2667 | |
2668 | | void CMainFrame::OnTypemenuAscii() |
| 2668 | void CMainFrame::OnTypemenuAscii() |
2669 | 2669 | { |
2670 | | m_nTransferType=1; |
| 2670 | m_nTransferType=1; |
2671 | 2671 | } |
2672 | 2672 | |
2673 | | void CMainFrame::OnUpdateTypemenuAscii(CCmdUI* pCmdUI) |
| 2673 | void CMainFrame::OnUpdateTypemenuAscii(CCmdUI* pCmdUI) |
2674 | 2674 | { |
2675 | 2675 | pCmdUI->SetCheck(m_nTransferType==1); |
2676 | 2676 | } |
2677 | 2677 | |
2678 | | void CMainFrame::OnTypemenuBinary() |
| 2678 | void CMainFrame::OnTypemenuBinary() |
2679 | 2679 | { |
2680 | | m_nTransferType=2; |
| 2680 | m_nTransferType=2; |
2681 | 2681 | } |
2682 | 2682 | |
2683 | | void CMainFrame::OnUpdateTypemenuBinary(CCmdUI* pCmdUI) |
| 2683 | void CMainFrame::OnUpdateTypemenuBinary(CCmdUI* pCmdUI) |
2684 | 2684 | { |
2685 | 2685 | pCmdUI->SetCheck(m_nTransferType==2); |
2686 | 2686 | } |
2687 | 2687 | |
2688 | | void CMainFrame::OnTypemenuDetect() |
| 2688 | void CMainFrame::OnTypemenuDetect() |
2689 | 2689 | { |
2690 | | m_nTransferType=0; |
| 2690 | m_nTransferType=0; |
2691 | 2691 | } |
2692 | 2692 | |
2693 | | void CMainFrame::OnUpdateTypemenuDetect(CCmdUI* pCmdUI) |
| 2693 | void CMainFrame::OnUpdateTypemenuDetect(CCmdUI* pCmdUI) |
2694 | 2694 | { |
2695 | | pCmdUI->SetCheck(m_nTransferType==0); |
| 2695 | pCmdUI->SetCheck(m_nTransferType==0); |
2696 | 2696 | } |
2697 | 2697 | |
2698 | | void CMainFrame::OnDestroy() |
| 2698 | void CMainFrame::OnDestroy() |
2699 | 2699 | { |
2700 | 2700 | if (m_pSecureIconCtrl->GetSafeHwnd() && m_pSecureIconCtrl->GetIcon()) |
2701 | 2701 | DestroyIcon(m_pSecureIconCtrl->GetIcon()); |
2702 | 2702 | delete m_pSecureIconCtrl; |
2703 | 2703 | m_pSecureIconCtrl=0; |
2704 | | |
| 2704 | |
2705 | 2705 | CFrameWnd::OnDestroy(); |
2706 | | |
| 2706 | |
2707 | 2707 | if (m_pLocalViewHeader) |
2708 | 2708 | { |
2709 | 2709 | delete m_pLocalViewHeader->m_pEdit; |
… |
… |
|
2712 | 2712 | delete m_pLocalViewHeader; |
2713 | 2713 | m_pLocalViewHeader=0; |
2714 | 2714 | } |
2715 | | |
| 2715 | |
2716 | 2716 | if (m_pRemoteViewHeader) |
2717 | 2717 | { |
2718 | 2718 | delete m_pRemoteViewHeader->m_pEdit; |
… |
… |
|
2728 | 2728 | pXML->ResetPos(); |
2729 | 2729 | while (pXML->FindChildElem( _T("RecentServers") )) |
2730 | 2730 | pXML->RemoveChildElem(); |
2731 | | |
| 2731 | |
2732 | 2732 | pXML->AddChildElem( _T("RecentServers") ); |
2733 | 2733 | pXML->IntoElem(); |
2734 | 2734 | for (std::list<t_server>::reverse_iterator iter=m_RecentQuickconnectServers.rbegin(); iter!=m_RecentQuickconnectServers.rend(); iter++) |
… |
… |
|
2737 | 2737 | iter->pass = ""; |
2738 | 2738 | COptions::SaveServer(pXML, *iter); |
2739 | 2739 | } |
2740 | | |
| 2740 | |
2741 | 2741 | pXML->OutOfElem(); |
2742 | 2742 | |
2743 | 2743 | COptions::UnlockXML(); |
… |
… |
|
2776 | 2776 | } |
2777 | 2777 | } |
2778 | 2778 | |
2779 | | void CMainFrame::OnViewQuickconnectBar() |
| 2779 | void CMainFrame::OnViewQuickconnectBar() |
2780 | 2780 | { |
2781 | 2781 | m_bShowQuickconnect = !m_bShowQuickconnect; |
2782 | 2782 | if (m_bShowQuickconnect) |
… |
… |
|
2792 | 2792 | } |
2793 | 2793 | m_pWndDlgBar->ShowWindow(SW_HIDE); |
2794 | 2794 | } |
2795 | | RecalcLayout(); |
| 2795 | RecalcLayout(); |
2796 | 2796 | } |
2797 | 2797 | |
2798 | | void CMainFrame::OnUpdateViewQuickconnectBar(CCmdUI* pCmdUI) |
| 2798 | void CMainFrame::OnUpdateViewQuickconnectBar(CCmdUI* pCmdUI) |
2799 | 2799 | { |
2800 | | pCmdUI->SetCheck(m_bShowQuickconnect); |
| 2800 | pCmdUI->SetCheck(m_bShowQuickconnect); |
2801 | 2801 | } |
2802 | 2802 | |
2803 | | void CMainFrame::OnViewMessagelog() |
| 2803 | void CMainFrame::OnViewMessagelog() |
2804 | 2804 | { |
2805 | 2805 | m_bShowMessageLog = !m_bShowMessageLog; |
2806 | 2806 | if (m_bShowMessageLog) |
2807 | 2807 | m_wndVertSplitter.ShowRow(0); |
2808 | 2808 | else |
2809 | 2809 | m_wndVertSplitter.HideRow(0,1); |
2810 | | RecalcLayout(); |
| 2810 | RecalcLayout(); |
2811 | 2811 | } |
2812 | 2812 | |
2813 | | void CMainFrame::OnUpdateViewMessagelog(CCmdUI* pCmdUI) |
| 2813 | void CMainFrame::OnUpdateViewMessagelog(CCmdUI* pCmdUI) |
2814 | 2814 | { |
2815 | | pCmdUI->SetCheck(m_bShowMessageLog); |
| 2815 | pCmdUI->SetCheck(m_bShowMessageLog); |
2816 | 2816 | } |
2817 | 2817 | |
2818 | | void CMainFrame::OnViewStatusBar() |
| 2818 | void CMainFrame::OnViewStatusBar() |
2819 | 2819 | { |
2820 | 2820 | m_wndStatusBar.ShowWindow(m_wndStatusBar.IsVisible()?SW_HIDE:SW_SHOW); |
2821 | 2821 | RecalcLayout(); |
2822 | 2822 | } |
2823 | 2823 | |
2824 | | void CMainFrame::OnViewToolbar() |
| 2824 | void CMainFrame::OnViewToolbar() |
2825 | 2825 | { |
2826 | 2826 | m_pWndToolBar->ShowWindow(m_pWndToolBar->IsVisible()?SW_HIDE:SW_SHOW); |
2827 | 2827 | RecalcLayout(); |
2828 | 2828 | } |
2829 | 2829 | |
2830 | | void CMainFrame::OnEditExportsettings() |
| 2830 | void CMainFrame::OnEditExportsettings() |
2831 | 2831 | { |
2832 | | COptions::Export(); |
| 2832 | COptions::Export(); |
2833 | 2833 | } |
2834 | 2834 | |
2835 | | void CMainFrame::OnEditImportsettings() |
| 2835 | void CMainFrame::OnEditImportsettings() |
2836 | 2836 | { |
2837 | | COptions::Import(); |
| 2837 | COptions::Import(); |
2838 | 2838 | } |
2839 | 2839 | |
2840 | 2840 | //***************************************** |
2841 | 2841 | //Code to change the local list view styles |
2842 | 2842 | //***************************************** |
2843 | 2843 | |
2844 | | void CMainFrame::OnLocalliststyleIcon() |
| 2844 | void CMainFrame::OnLocalliststyleIcon() |
2845 | 2845 | { |
2846 | 2846 | m_nLocalListViewStyle=2; |
2847 | 2847 | GetLocalPane2()->m_pListCtrl->SetListStyle(m_nLocalListViewStyle); |
2848 | 2848 | } |
2849 | 2849 | |
2850 | | void CMainFrame::OnUpdateLocalliststyleIcon(CCmdUI* pCmdUI) |
| 2850 | void CMainFrame::OnUpdateLocalliststyleIcon(CCmdUI* pCmdUI) |
2851 | 2851 | { |
2852 | | pCmdUI->SetCheck(m_nLocalListViewStyle==2); |
| 2852 | pCmdUI->SetCheck(m_nLocalListViewStyle==2); |
2853 | 2853 | } |
2854 | 2854 | |
2855 | | void CMainFrame::OnLocalliststyleList() |
| 2855 | void CMainFrame::OnLocalliststyleList() |
2856 | 2856 | { |
2857 | 2857 | m_nLocalListViewStyle=1; |
2858 | 2858 | GetLocalPane2()->m_pListCtrl->SetListStyle(m_nLocalListViewStyle); |
2859 | 2859 | } |
2860 | 2860 | |
2861 | | void CMainFrame::OnUpdateLocalliststyleList(CCmdUI* pCmdUI) |
| 2861 | void CMainFrame::OnUpdateLocalliststyleList(CCmdUI* pCmdUI) |
2862 | 2862 | { |
2863 | | pCmdUI->SetCheck(m_nLocalListViewStyle==1); |
| 2863 | pCmdUI->SetCheck(m_nLocalListViewStyle==1); |
2864 | 2864 | } |
2865 | 2865 | |
2866 | | void CMainFrame::OnLocalliststyleReport() |
| 2866 | void CMainFrame::OnLocalliststyleReport() |
2867 | 2867 | { |
2868 | 2868 | m_nLocalListViewStyle=0; |
2869 | 2869 | GetLocalPane2()->m_pListCtrl->SetListStyle(m_nLocalListViewStyle); |
2870 | 2870 | } |
2871 | 2871 | |
2872 | | void CMainFrame::OnUpdateLocalliststyleReport(CCmdUI* pCmdUI) |
| 2872 | void CMainFrame::OnUpdateLocalliststyleReport(CCmdUI* pCmdUI) |
2873 | 2873 | { |
2874 | | pCmdUI->SetCheck(m_nLocalListViewStyle==0); |
| 2874 | pCmdUI->SetCheck(m_nLocalListViewStyle==0); |
2875 | 2875 | } |
2876 | 2876 | |
2877 | | void CMainFrame::OnLocalliststyleSmallicon() |
| 2877 | void CMainFrame::OnLocalliststyleSmallicon() |
2878 | 2878 | { |
2879 | 2879 | m_nLocalListViewStyle=3; |
2880 | 2880 | GetLocalPane2()->m_pListCtrl->SetListStyle(m_nLocalListViewStyle); |
2881 | 2881 | } |
2882 | 2882 | |
2883 | | void CMainFrame::OnUpdateLocalliststyleSmallicon(CCmdUI* pCmdUI) |
| 2883 | void CMainFrame::OnUpdateLocalliststyleSmallicon(CCmdUI* pCmdUI) |
2884 | 2884 | { |
2885 | | pCmdUI->SetCheck(m_nLocalListViewStyle==3); |
| 2885 | pCmdUI->SetCheck(m_nLocalListViewStyle==3); |
2886 | 2886 | } |
2887 | 2887 | |
2888 | | void CMainFrame::OnViewLocallistviewFilesize() |
| 2888 | void CMainFrame::OnViewLocallistviewFilesize() |
2889 | 2889 | { |
2890 | 2890 | m_nHideLocalColumns^=1; |
2891 | 2891 | GetLocalPane2()->m_pListCtrl->UpdateColumns(m_nHideLocalColumns); |
2892 | 2892 | } |
2893 | 2893 | |
2894 | | void CMainFrame::OnUpdateViewLocallistviewFilesize(CCmdUI* pCmdUI) |
| 2894 | void CMainFrame::OnUpdateViewLocallistviewFilesize(CCmdUI* pCmdUI) |
2895 | 2895 | { |
2896 | 2896 | pCmdUI->Enable(!m_nLocalListViewStyle); |
2897 | 2897 | pCmdUI->SetCheck(!(m_nHideLocalColumns&1)); |
2898 | 2898 | } |
2899 | 2899 | |
2900 | | void CMainFrame::OnViewLocallistviewFiletype() |
| 2900 | void CMainFrame::OnViewLocallistviewFiletype() |
2901 | 2901 | { |
2902 | 2902 | m_nHideLocalColumns^=2; |
2903 | | GetLocalPane2()->m_pListCtrl->UpdateColumns(m_nHideLocalColumns); |
| 2903 | GetLocalPane2()->m_pListCtrl->UpdateColumns(m_nHideLocalColumns); |
2904 | 2904 | } |
2905 | 2905 | |
2906 | | void CMainFrame::OnUpdateViewLocallistviewFiletype(CCmdUI* pCmdUI) |
| 2906 | void CMainFrame::OnUpdateViewLocallistviewFiletype(CCmdUI* pCmdUI) |
2907 | 2907 | { |
2908 | 2908 | pCmdUI->Enable(!m_nLocalListViewStyle); |
2909 | 2909 | pCmdUI->SetCheck(!(m_nHideLocalColumns&2)); |
2910 | 2910 | } |
2911 | 2911 | |
2912 | | void CMainFrame::OnViewLocallistviewLastmodifiedtime() |
| 2912 | void CMainFrame::OnViewLocallistviewLastmodifiedtime() |
2913 | 2913 | { |
2914 | 2914 | m_nHideLocalColumns^=4; |
2915 | | GetLocalPane2()->m_pListCtrl->UpdateColumns(m_nHideLocalColumns); |
| 2915 | GetLocalPane2()->m_pListCtrl->UpdateColumns(m_nHideLocalColumns); |
2916 | 2916 | } |
2917 | 2917 | |
2918 | | void CMainFrame::OnUpdateViewLocallistviewLastmodifiedtime(CCmdUI* pCmdUI) |
| 2918 | void CMainFrame::OnUpdateViewLocallistviewLastmodifiedtime(CCmdUI* pCmdUI) |
2919 | 2919 | { |
2920 | 2920 | pCmdUI->Enable(!m_nLocalListViewStyle); |
2921 | 2921 | pCmdUI->SetCheck(!(m_nHideLocalColumns&4)); |
… |
… |
|
2925 | 2925 | //Code to change the remote list view styles |
2926 | 2926 | //****************************************** |
2927 | 2927 | |
2928 | | void CMainFrame::OnRemoteliststyleIcon() |
| 2928 | void CMainFrame::OnRemoteliststyleIcon() |
2929 | 2929 | { |
2930 | 2930 | m_nRemoteListViewStyle=2; |
2931 | 2931 | GetFtpPane()->m_pListCtrl->SetListStyle(m_nRemoteListViewStyle); |
2932 | 2932 | } |
2933 | 2933 | |
2934 | | void CMainFrame::OnUpdateRemoteliststyleIcon(CCmdUI* pCmdUI) |
| 2934 | void CMainFrame::OnUpdateRemoteliststyleIcon(CCmdUI* pCmdUI) |
2935 | 2935 | { |
2936 | | pCmdUI->SetCheck(m_nRemoteListViewStyle==2); |
| 2936 | pCmdUI->SetCheck(m_nRemoteListViewStyle==2); |
2937 | 2937 | } |
2938 | 2938 | |
2939 | | void CMainFrame::OnRemoteliststyleList() |
| 2939 | void CMainFrame::OnRemoteliststyleList() |
2940 | 2940 | { |
2941 | 2941 | m_nRemoteListViewStyle=1; |
2942 | 2942 | GetFtpPane()->m_pListCtrl->SetListStyle(m_nRemoteListViewStyle); |
2943 | 2943 | } |
2944 | 2944 | |
2945 | | void CMainFrame::OnUpdateRemoteliststyleList(CCmdUI* pCmdUI) |
| 2945 | void CMainFrame::OnUpdateRemoteliststyleList(CCmdUI* pCmdUI) |
2946 | 2946 | { |
2947 | 2947 | pCmdUI->SetCheck(m_nRemoteListViewStyle==1); |
2948 | 2948 | } |
2949 | 2949 | |
2950 | | void CMainFrame::OnRemoteliststyleReport() |
| 2950 | void CMainFrame::OnRemoteliststyleReport() |
2951 | 2951 | { |
2952 | 2952 | m_nRemoteListViewStyle=0; |
2953 | 2953 | GetFtpPane()->m_pListCtrl->SetListStyle(m_nRemoteListViewStyle); |
2954 | 2954 | } |
2955 | 2955 | |
2956 | | void CMainFrame::OnUpdateRemoteliststyleReport(CCmdUI* pCmdUI) |
| 2956 | void CMainFrame::OnUpdateRemoteliststyleReport(CCmdUI* pCmdUI) |
2957 | 2957 | { |
2958 | | pCmdUI->SetCheck(m_nRemoteListViewStyle==0); |
| 2958 | pCmdUI->SetCheck(m_nRemoteListViewStyle==0); |
2959 | 2959 | } |
2960 | 2960 | |
2961 | | void CMainFrame::OnRemoteliststyleSmallicon() |
| 2961 | void CMainFrame::OnRemoteliststyleSmallicon() |
2962 | 2962 | { |
2963 | 2963 | m_nRemoteListViewStyle=3; |
2964 | 2964 | GetFtpPane()->m_pListCtrl->SetListStyle(m_nRemoteListViewStyle); |
2965 | 2965 | } |
2966 | 2966 | |
2967 | | void CMainFrame::OnUpdateRemoteliststyleSmallicon(CCmdUI* pCmdUI) |
| 2967 | void CMainFrame::OnUpdateRemoteliststyleSmallicon(CCmdUI* pCmdUI) |
2968 | 2968 | { |
2969 | | pCmdUI->SetCheck(m_nRemoteListViewStyle==3); |
| 2969 | pCmdUI->SetCheck(m_nRemoteListViewStyle==3); |
2970 | 2970 | } |
2971 | 2971 | |
2972 | | void CMainFrame::OnViewRemotelistviewFilesize() |
| 2972 | void CMainFrame::OnViewRemotelistviewFilesize() |
2973 | 2973 | { |
2974 | 2974 | m_nHideRemoteColumns ^= 1; |
2975 | | GetFtpPane()->m_pListCtrl->UpdateColumns(m_nHideRemoteColumns); |
| 2975 | GetFtpPane()->m_pListCtrl->UpdateColumns(m_nHideRemoteColumns); |
2976 | 2976 | } |
2977 | 2977 | |
2978 | | void CMainFrame::OnUpdateViewRemotelistviewFilesize(CCmdUI* pCmdUI) |
| 2978 | void CMainFrame::OnUpdateViewRemotelistviewFilesize(CCmdUI* pCmdUI) |
2979 | 2979 | { |
2980 | 2980 | pCmdUI->Enable(!m_nRemoteListViewStyle); |
2981 | 2981 | pCmdUI->SetCheck(!(m_nHideRemoteColumns&1)); |
2982 | 2982 | } |
2983 | 2983 | |
2984 | | void CMainFrame::OnViewRemotelistviewFiletype() |
| 2984 | void CMainFrame::OnViewRemotelistviewFiletype() |
2985 | 2985 | { |
2986 | 2986 | m_nHideRemoteColumns ^= 2; |
2987 | | GetFtpPane()->m_pListCtrl->UpdateColumns(m_nHideRemoteColumns); |
| 2987 | GetFtpPane()->m_pListCtrl->UpdateColumns(m_nHideRemoteColumns); |
2988 | 2988 | } |
2989 | 2989 | |
2990 | | void CMainFrame::OnUpdateViewRemotelistviewFiletype(CCmdUI* pCmdUI) |
| 2990 | void CMainFrame::OnUpdateViewRemotelistviewFiletype(CCmdUI* pCmdUI) |
2991 | 2991 | { |
2992 | 2992 | pCmdUI->Enable(!m_nRemoteListViewStyle); |
2993 | 2993 | pCmdUI->SetCheck(!(m_nHideRemoteColumns&2)); |
2994 | 2994 | } |
2995 | 2995 | |
2996 | | void CMainFrame::OnViewRemotelistviewDate() |
| 2996 | void CMainFrame::OnViewRemotelistviewDate() |
2997 | 2997 | { |
2998 | 2998 | m_nHideRemoteColumns ^= 4; |
2999 | | GetFtpPane()->m_pListCtrl->UpdateColumns(m_nHideRemoteColumns); |
| 2999 | GetFtpPane()->m_pListCtrl->UpdateColumns(m_nHideRemoteColumns); |
3000 | 3000 | } |
3001 | 3001 | |
3002 | | void CMainFrame::OnUpdateViewRemotelistviewDate(CCmdUI* pCmdUI) |
| 3002 | void CMainFrame::OnUpdateViewRemotelistviewDate(CCmdUI* pCmdUI) |
3003 | 3003 | { |
3004 | 3004 | pCmdUI->Enable(!m_nRemoteListViewStyle); |
3005 | 3005 | pCmdUI->SetCheck(!(m_nHideRemoteColumns&4)); |
3006 | 3006 | } |
3007 | 3007 | |
3008 | | void CMainFrame::OnViewRemotelistviewTime() |
| 3008 | void CMainFrame::OnViewRemotelistviewTime() |
3009 | 3009 | { |
3010 | 3010 | m_nHideRemoteColumns ^= 8; |
3011 | | GetFtpPane()->m_pListCtrl->UpdateColumns(m_nHideRemoteColumns); |
| 3011 | GetFtpPane()->m_pListCtrl->UpdateColumns(m_nHideRemoteColumns); |
3012 | 3012 | } |
3013 | 3013 | |
3014 | | void CMainFrame::OnUpdateViewRemotelistviewTime(CCmdUI* pCmdUI) |
| 3014 | void CMainFrame::OnUpdateViewRemotelistviewTime(CCmdUI* pCmdUI) |
3015 | 3015 | { |
3016 | 3016 | pCmdUI->Enable(!m_nRemoteListViewStyle); |
3017 | 3017 | pCmdUI->SetCheck(!(m_nHideRemoteColumns&8)); |
3018 | 3018 | } |
3019 | 3019 | |
3020 | | void CMainFrame::OnViewRemotelistviewPermissions() |
| 3020 | void CMainFrame::OnViewRemotelistviewPermissions() |
3021 | 3021 | { |
3022 | 3022 | m_nHideRemoteColumns ^= 0x10; |
3023 | | GetFtpPane()->m_pListCtrl->UpdateColumns(m_nHideRemoteColumns); |
| 3023 | GetFtpPane()->m_pListCtrl->UpdateColumns(m_nHideRemoteColumns); |
3024 | 3024 | } |
3025 | 3025 | |
3026 | | void CMainFrame::OnUpdateViewRemotelistviewPermissions(CCmdUI* pCmdUI) |
| 3026 | void CMainFrame::OnUpdateViewRemotelistviewPermissions(CCmdUI* pCmdUI) |
3027 | 3027 | { |
3028 | 3028 | pCmdUI->Enable(!m_nRemoteListViewStyle); |
3029 | 3029 | pCmdUI->SetCheck(!(m_nHideRemoteColumns&0x10)); |
3030 | 3030 | } |
3031 | 3031 | |
3032 | | void CMainFrame::OnFileConnecttodefaultsite() |
| 3032 | void CMainFrame::OnFileConnecttodefaultsite() |
3033 | 3033 | { |
3034 | 3034 | t_SiteManagerItem *site=CSiteManager::GetDefaultSite(); |
3035 | 3035 | if (!site) |
3036 | 3036 | return; |
3037 | | |
| 3037 | |
3038 | 3038 | ParseSite(*site); |
3039 | 3039 | delete site; |
3040 | 3040 | return; |
3041 | 3041 | } |
3042 | 3042 | |
3043 | | void CMainFrame::OnHelpmenuContents() |
| 3043 | void CMainFrame::OnHelpmenuContents() |
3044 | 3044 | { |
3045 | 3045 | HINSTANCE hDLL=LoadLibrary( _T("hhctrl.ocx") ); |
3046 | 3046 | if (hDLL) |
… |
… |
|
3056 | 3056 | } |
3057 | 3057 | } |
3058 | 3058 | |
3059 | | void CMainFrame::OnHelpmenuIndex() |
| 3059 | void CMainFrame::OnHelpmenuIndex() |
3060 | 3060 | { |
3061 | 3061 | HINSTANCE hDLL=LoadLibrary( _T("hhctrl.ocx") ); |
3062 | 3062 | if (hDLL) |
… |
… |
|
3072 | 3072 | } |
3073 | 3073 | } |
3074 | 3074 | |
3075 | | void CMainFrame::OnHelpmenuSearch() |
| 3075 | void CMainFrame::OnHelpmenuSearch() |
3076 | 3076 | { |
3077 | 3077 | HH_FTS_QUERY q; |
3078 | 3078 | memset(&q,0,sizeof(q)); |
… |
… |
|
3089 | 3089 | |
3090 | 3090 | if (pHtmlHelp) |
3091 | 3091 | pHtmlHelp(m_hWnd, AfxGetApp()->m_pszHelpFilePath, HH_DISPLAY_SEARCH, (DWORD)&q); |
3092 | | } |
| 3092 | } |
3093 | 3093 | } |
3094 | 3094 | |
3095 | | void CMainFrame::WinHelp(DWORD dwData, UINT nCmd) |
| 3095 | void CMainFrame::WinHelp(DWORD dwData, UINT nCmd) |
3096 | 3096 | { |
3097 | 3097 | HINSTANCE hDLL=LoadLibrary( _T("hhctrl.ocx") ); |
3098 | 3098 | if (hDLL) |
… |
… |
|
3104 | 3104 | #endif |
3105 | 3105 | |
3106 | 3106 | if (pHtmlHelp) |
3107 | | pHtmlHelp(m_hWnd, AfxGetApp()->m_pszHelpFilePath, HH_HELP_CONTEXT, nCmd == HELP_CONTEXT ? dwData : 0); |
| 3107 | pHtmlHelp(m_hWnd, AfxGetApp()->m_pszHelpFilePath, HH_HELP_CONTEXT, nCmd == HELP_CONTEXT ? dwData : 0); |
3108 | 3108 | } |
3109 | 3109 | } |
3110 | 3110 | |
3111 | | void CMainFrame::OnOverwritemenuAsk() |
| 3111 | void CMainFrame::OnOverwritemenuAsk() |
3112 | 3112 | { |
3113 | 3113 | CFileExistsDlg::SetOverwriteSettings(FILEEXISTS_ASK); |
3114 | 3114 | } |
3115 | 3115 | |
3116 | | void CMainFrame::OnOverwritemenuOverwrite() |
| 3116 | void CMainFrame::OnOverwritemenuOverwrite() |
3117 | 3117 | { |
3118 | 3118 | CFileExistsDlg::SetOverwriteSettings(FILEEXISTS_OVERWRITE); |
3119 | 3119 | } |
3120 | 3120 | |
3121 | | void CMainFrame::OnOverwritemenuOverwriteifnewer() |
| 3121 | void CMainFrame::OnOverwritemenuOverwriteifnewer() |
3122 | 3122 | { |
3123 | 3123 | CFileExistsDlg::SetOverwriteSettings(FILEEXISTS_OVERWRITEIFNEWER); |
3124 | 3124 | } |
3125 | 3125 | |
3126 | | void CMainFrame::OnOverwritemenuResume() |
| 3126 | void CMainFrame::OnOverwritemenuResume() |
3127 | 3127 | { |
3128 | 3128 | CFileExistsDlg::SetOverwriteSettings(FILEEXISTS_RESUME); |
3129 | 3129 | } |
3130 | 3130 | |
3131 | | void CMainFrame::OnOverwritemenuRename() |
| 3131 | void CMainFrame::OnOverwritemenuRename() |
3132 | 3132 | { |
3133 | 3133 | CFileExistsDlg::SetOverwriteSettings(FILEEXISTS_RENAME); |
3134 | 3134 | } |
3135 | 3135 | |
3136 | | void CMainFrame::OnOverwritemenuSkip() |
| 3136 | void CMainFrame::OnOverwritemenuSkip() |
3137 | 3137 | { |
3138 | 3138 | CFileExistsDlg::SetOverwriteSettings(FILEEXISTS_SKIP); |
3139 | 3139 | } |
3140 | 3140 | |
3141 | | void CMainFrame::OnUpdateOverwritemenuAsk(CCmdUI* pCmdUI) |
| 3141 | void CMainFrame::OnUpdateOverwritemenuAsk(CCmdUI* pCmdUI) |
3142 | 3142 | { |
3143 | 3143 | pCmdUI->SetCheck(!CFileExistsDlg::Always()); |
3144 | 3144 | } |
3145 | 3145 | |
3146 | | void CMainFrame::OnUpdateOverwritemenuOverwrite(CCmdUI* pCmdUI) |
| 3146 | void CMainFrame::OnUpdateOverwritemenuOverwrite(CCmdUI* pCmdUI) |
3147 | 3147 | { |
3148 | 3148 | pCmdUI->SetCheck(CFileExistsDlg::Always()?(CFileExistsDlg::GetAction()==FILEEXISTS_OVERWRITE):FALSE); |
3149 | 3149 | } |
3150 | 3150 | |
3151 | | void CMainFrame::OnUpdateOverwritemenuOverwriteifnewer(CCmdUI* pCmdUI) |
| 3151 | void CMainFrame::OnUpdateOverwritemenuOverwriteifnewer(CCmdUI* pCmdUI) |
3152 | 3152 | { |
3153 | 3153 | pCmdUI->SetCheck(CFileExistsDlg::Always()?(CFileExistsDlg::GetAction()==FILEEXISTS_OVERWRITEIFNEWER):FALSE); |
3154 | 3154 | } |
3155 | 3155 | |
3156 | | void CMainFrame::OnUpdateOverwritemenuResume(CCmdUI* pCmdUI) |
| 3156 | void CMainFrame::OnUpdateOverwritemenuResume(CCmdUI* pCmdUI) |
3157 | 3157 | { |
3158 | 3158 | pCmdUI->SetCheck(CFileExistsDlg::Always()?(CFileExistsDlg::GetAction()==FILEEXISTS_RESUME):FALSE); |
3159 | 3159 | } |
3160 | 3160 | |
3161 | | void CMainFrame::OnUpdateOverwritemenuRename(CCmdUI* pCmdUI) |
| 3161 | void CMainFrame::OnUpdateOverwritemenuRename(CCmdUI* pCmdUI) |
3162 | 3162 | { |
3163 | 3163 | pCmdUI->SetCheck(CFileExistsDlg::Always()?(CFileExistsDlg::GetAction()==FILEEXISTS_RENAME):FALSE); |
3164 | 3164 | } |
3165 | 3165 | |
3166 | | void CMainFrame::OnUpdateOverwritemenuSkip(CCmdUI* pCmdUI) |
| 3166 | void CMainFrame::OnUpdateOverwritemenuSkip(CCmdUI* pCmdUI) |
3167 | 3167 | { |
3168 | 3168 | pCmdUI->SetCheck(CFileExistsDlg::Always()?(CFileExistsDlg::GetAction()==FILEEXISTS_SKIP):FALSE); |
3169 | 3169 | } |
… |
… |
|
3179 | 3179 | CString str=COptions::GetOption(OPTION_LASTWINDOWPOS); |
3180 | 3180 | WINDOWPLACEMENT placement; |
3181 | 3181 | placement.length=sizeof(placement); |
3182 | | |
| 3182 | |
3183 | 3183 | int pos; |
3184 | 3184 | pos=str.Find( _T(" ") ); |
3185 | 3185 | if (pos==-1) |
… |
… |
|
3189 | 3189 | } |
3190 | 3190 | m_PosData.state=_ttoi(str.Left(pos)); |
3191 | 3191 | str=str.Mid(pos+1); |
3192 | | |
| 3192 | |
3193 | 3193 | pos=str.Find( _T(" ") ); |
3194 | 3194 | if (pos==-1) |
3195 | 3195 | { |
… |
… |
|
3198 | 3198 | } |
3199 | 3199 | m_PosData.NormalRect.left=_ttoi(str.Left(pos)); |
3200 | 3200 | str=str.Mid(pos+1); |
3201 | | |
| 3201 | |
3202 | 3202 | pos=str.Find( _T(" ") ); |
3203 | 3203 | if (pos==-1) |
3204 | 3204 | { |
… |
… |
|
3207 | 3207 | } |
3208 | 3208 | m_PosData.NormalRect.top=_ttoi(str.Left(pos)); |
3209 | 3209 | str=str.Mid(pos+1); |
3210 | | |
| 3210 | |
3211 | 3211 | pos=str.Find( _T(" ") ); |
3212 | 3212 | if (pos==-1) |
3213 | 3213 | { |
… |
… |
|
3216 | 3216 | } |
3217 | 3217 | m_PosData.NormalRect.right=_ttoi(str.Left(pos)); |
3218 | 3218 | str=str.Mid(pos+1); |
3219 | | |
| 3219 | |
3220 | 3220 | if (str=="") |
3221 | 3221 | { |
3222 | 3222 | CenterWindow(); |
3223 | 3223 | return FALSE; |
3224 | 3224 | } |
3225 | 3225 | m_PosData.NormalRect.bottom=_ttoi(str); |
3226 | | |
| 3226 | |
3227 | 3227 | str=COptions::GetOption(OPTION_LASTSPLITTERSIZE); |
3228 | | |
| 3228 | |
3229 | 3229 | pos=str.Find( _T(" ") ); |
3230 | 3230 | if (pos==-1) |
3231 | 3231 | { |
… |
… |
|
3234 | 3234 | } |
3235 | 3235 | m_PosData.cy1=_ttoi(str.Left(pos)); |
3236 | 3236 | str=str.Mid(pos+1); |
3237 | | |
| 3237 | |
3238 | 3238 | pos=str.Find( _T(" ") ); |
3239 | 3239 | if (pos==-1) |
3240 | 3240 | { |
… |
… |
|
3243 | 3243 | } |
3244 | 3244 | m_PosData.cy2=_ttoi(str.Left(pos)); |
3245 | 3245 | str=str.Mid(pos+1); |
3246 | | |
| 3246 | |
3247 | 3247 | pos=str.Find( _T(" ") ); |
3248 | 3248 | if (pos==-1) |
3249 | 3249 | { |
… |
… |
|
3252 | 3252 | } |
3253 | 3253 | m_PosData.cy3=_ttoi(str.Left(pos)); |
3254 | 3254 | str=str.Mid(pos+1); |
3255 | | |
| 3255 | |
3256 | 3256 | pos=str.Find( _T(" ") ); |
3257 | 3257 | if (pos==-1) |
3258 | 3258 | { |
… |
… |
|
3261 | 3261 | } |
3262 | 3262 | m_PosData.cy4=_ttoi(str.Left(pos)); |
3263 | 3263 | str=str.Mid(pos+1); |
3264 | | |
| 3264 | |
3265 | 3265 | if (str=="") |
3266 | 3266 | { |
3267 | 3267 | CenterWindow(); |
3268 | 3268 | return FALSE; |
3269 | 3269 | } |
3270 | 3270 | m_PosData.cx=_ttoi(str); |
3271 | | |
3272 | | |
3273 | | |
| 3271 | |
| 3272 | |
| 3273 | |
3274 | 3274 | /* //Todo: Coordinate checking which is compatible with multi monitor systems |
3275 | 3275 | if (placement.rcNormalPosition.left<0) |
3276 | 3276 | { |
… |
… |
|
3312 | 3312 | m_wndMainSplitter.SetColumnInfo(0, m_PosData.cx, 0); |
3313 | 3313 | m_wndMainSplitter.RecalcLayout(); |
3314 | 3314 | m_wndVertSplitter.RecalcLayout(); |
3315 | | |
| 3315 | |
3316 | 3316 | return TRUE; |
3317 | 3317 | } |
3318 | 3318 | |
… |
… |
|
3324 | 3324 | #define VK_X 88 |
3325 | 3325 | #define VK_Z 90 |
3326 | 3326 | |
3327 | | BOOL CMainFrame::PreTranslateMessage(MSG* pMsg) |
| 3327 | BOOL CMainFrame::PreTranslateMessage(MSG* pMsg) |
3328 | 3328 | { |
3329 | 3329 | if ( pMsg->message == WM_KEYDOWN ) |
3330 | 3330 | { |
… |
… |
|
3353 | 3353 | m_pLocalViewHeader->m_pEdit->SetFocus(); |
3354 | 3354 | //Local edit field has focus |
3355 | 3355 | //Ftp combo box has focus |
3356 | | else if (pCurrent==m_pLocalViewHeader->m_pEdit|| pCurrent->GetParent()==m_pLocalViewHeader->m_pEdit) |
| 3356 | else if (pCurrent==m_pLocalViewHeader->m_pEdit|| pCurrent->GetParent()==m_pLocalViewHeader->m_pEdit) |
3357 | 3357 | if (m_bShowTree) |
3358 | 3358 | GetLocalPane()->GetTreeCtrl()->SetFocus(); |
3359 | 3359 | else |
… |
… |
|
3488 | 3488 | else if (pCurrent==GetLocalPane()->GetTreeCtrl()) |
3489 | 3489 | m_pLocalViewHeader->m_pEdit->SetFocus(); |
3490 | 3490 | //Local edit field has focus |
3491 | | else if (pCurrent==m_pLocalViewHeader->m_pEdit|| pCurrent->GetParent()==m_pLocalViewHeader->m_pEdit) |
| 3491 | else if (pCurrent==m_pLocalViewHeader->m_pEdit|| pCurrent->GetParent()==m_pLocalViewHeader->m_pEdit) |
3492 | 3492 | if (m_bShowMessageLog) |
3493 | 3493 | GetStatusPane()->SetFocus(); |
3494 | 3494 | else |
… |
… |
|
3524 | 3524 | else |
3525 | 3525 | GetLocalPane2()->GetListCtrl()->SetFocus(); |
3526 | 3526 | else if (pCurrent->GetParent()==m_pWndDlgBar) |
3527 | | return CFrameWnd::PreTranslateMessage(pMsg); |
3528 | | |
| 3527 | return CFrameWnd::PreTranslateMessage(pMsg); |
| 3528 | |
3529 | 3529 | |
3530 | 3530 | //No known window has focus |
3531 | 3531 | else |
… |
… |
|
3546 | 3546 | } |
3547 | 3547 | return CFrameWnd::PreTranslateMessage(pMsg); |
3548 | 3548 | } |
3549 | | |
| 3549 | |
3550 | 3550 | return CFrameWnd::PreTranslateMessage(pMsg); |
3551 | 3551 | } |
3552 | 3552 | |
3553 | | void CMainFrame::OnMenuQueueExport() |
| 3553 | void CMainFrame::OnMenuQueueExport() |
3554 | 3554 | { |
3555 | 3555 | ((CQueueCtrl *)GetQueuePane()->GetListCtrl())->Export(); |
3556 | 3556 | } |
3557 | 3557 | |
3558 | | void CMainFrame::OnUpdateMenuQueueExport(CCmdUI* pCmdUI) |
| 3558 | void CMainFrame::OnUpdateMenuQueueExport(CCmdUI* pCmdUI) |
3559 | 3559 | { |
3560 | 3560 | pCmdUI->Enable(!((CQueueCtrl *)GetQueuePane()->GetListCtrl())->IsQueueEmpty()); |
3561 | 3561 | } |
3562 | 3562 | |
3563 | | void CMainFrame::OnMenuQueueImport() |
| 3563 | void CMainFrame::OnMenuQueueImport() |
3564 | 3564 | { |
3565 | | ((CQueueCtrl *)GetQueuePane()->GetListCtrl())->Import(); |
| 3565 | ((CQueueCtrl *)GetQueuePane()->GetListCtrl())->Import(); |
3566 | 3566 | } |
3567 | 3567 | |
3568 | | void CMainFrame::OnUpdateMenuQueueProcessnow(CCmdUI* pCmdUI) |
| 3568 | void CMainFrame::OnUpdateMenuQueueProcessnow(CCmdUI* pCmdUI) |
3569 | 3569 | { |
3570 | 3570 | pCmdUI->SetCheck(((CQueueCtrl *)GetQueuePane()->GetListCtrl())->DoProcessQueue()); |
3571 | 3571 | pCmdUI->Enable(!((CQueueCtrl *)GetQueuePane()->GetListCtrl())->IsQueueEmpty()); |
3572 | 3572 | } |
3573 | 3573 | |
3574 | | void CMainFrame::OnMenuQueueUseMultiple() |
| 3574 | void CMainFrame::OnMenuQueueUseMultiple() |
3575 | 3575 | { |
3576 | | ((CQueueCtrl *)GetQueuePane()->GetListCtrl())->ToggleUseMultiple(); |
| 3576 | ((CQueueCtrl *)GetQueuePane()->GetListCtrl())->ToggleUseMultiple(); |
3577 | 3577 | } |
3578 | 3578 | |
3579 | | void CMainFrame::OnUpdateMenuQueueUseMultiple(CCmdUI* pCmdUI) |
| 3579 | void CMainFrame::OnUpdateMenuQueueUseMultiple(CCmdUI* pCmdUI) |
3580 | 3580 | { |
3581 | 3581 | pCmdUI->SetCheck(((CQueueCtrl *)GetQueuePane()->GetListCtrl())->DoUseMultiple()); |
3582 | 3582 | } |
3583 | 3583 | |
3584 | | void CMainFrame::OnMenuQueueProcessnow() |
| 3584 | void CMainFrame::OnMenuQueueProcessnow() |
3585 | 3585 | { |
3586 | 3586 | if (((CQueueCtrl *)GetQueuePane()->GetListCtrl())->DoProcessQueue()) |
3587 | 3587 | ((CQueueCtrl *)GetQueuePane()->GetListCtrl())->StopProcessing(); |
… |
… |
|
3589 | 3589 | TransferQueue(1); |
3590 | 3590 | } |
3591 | 3591 | |
3592 | | void CMainFrame::OnMenuTransferManualtransfer() |
| 3592 | void CMainFrame::OnMenuTransferManualtransfer() |
3593 | 3593 | { |
3594 | 3594 | CManualTransferDlg dlg; |
3595 | 3595 | t_transferfile transferfile; |
… |
… |
|
3597 | 3597 | t_server server; |
3598 | 3598 | if (m_pFileZillaApi->GetCurrentServer(server)==FZ_REPLY_OK) |
3599 | 3599 | pServer=&server; |
3600 | | |
| 3600 | |
3601 | 3601 | int res=dlg.Show(transferfile, pServer, GetLocalPane2()->GetLocalFolder(), ((CFtpListCtrl *)GetFtpPane()->GetListCtrl())->GetCurrentDirectory()); |
3602 | 3602 | if (res) |
3603 | 3603 | { |
… |
… |
|
3623 | 3623 | if (res==2) |
3624 | 3624 | TransferQueue(2); |
3625 | 3625 | } |
3626 | | |
| 3626 | |
3627 | 3627 | } |
3628 | 3628 | |
3629 | | void CMainFrame::OnSysCommand( UINT nID, LPARAM lParam ) |
| 3629 | void CMainFrame::OnSysCommand( UINT nID, LPARAM lParam ) |
3630 | 3630 | { |
3631 | 3631 | if ((nID&0xFFF0)==SC_RESTORE && m_PosData.state) |
3632 | 3632 | { |
… |
… |
|
3673 | 3673 | } |
3674 | 3674 | } |
3675 | 3675 | |
3676 | | LRESULT CMainFrame::DefWindowProc(UINT message, WPARAM wParam, LPARAM lParam) |
| 3676 | LRESULT CMainFrame::DefWindowProc(UINT message, WPARAM wParam, LPARAM lParam) |
3677 | 3677 | { |
3678 | 3678 | if (m_pFileZillaApi && message==m_nFileZillaApiMessageID) |
3679 | 3679 | { |
… |
… |
|
3790 | 3790 | CString caption; |
3791 | 3791 | caption.LoadString(IDS_QUESTION_VIEWEDIT_MODIFIED_CAPTION); |
3792 | 3792 | if (MessageBox(text, caption, MB_YESNO | MB_ICONQUESTION)==IDYES) |
3793 | | { |
| 3793 | { |
3794 | 3794 | GetQueuePane()->AddItem(pQueueData->transferFile, TRUE, 3); |
3795 | 3795 | TransferQueue(2); |
3796 | 3796 | } |
… |
… |
|
3800 | 3800 | return CFrameWnd::DefWindowProc(message, wParam, lParam); |
3801 | 3801 | } |
3802 | 3802 | |
3803 | | void CMainFrame::OnTimer(UINT_PTR nIDEvent) |
| 3803 | void CMainFrame::OnTimer(UINT_PTR nIDEvent) |
3804 | 3804 | { |
3805 | 3805 | if (nIDEvent==m_nSecTimerID) |
3806 | 3806 | { |
… |
… |
|
3819 | 3819 | CFrameWnd::OnTimer(nIDEvent); |
3820 | 3820 | } |
3821 | 3821 | |
3822 | | void CMainFrame::OnMenuSiteChangepass() |
| 3822 | void CMainFrame::OnMenuSiteChangepass() |
3823 | 3823 | { |
3824 | 3824 | CServerChangePass dlg; |
3825 | 3825 | if (dlg.DoModal()==IDOK) |
… |
… |
|
3827 | 3827 | if (!m_pCommandQueue->Command("SITE PSWD \""+dlg.m_Old+"\" \""+dlg.m_New+"\"")) |
3828 | 3828 | MessageBeep(MB_ICONEXCLAMATION); |
3829 | 3829 | } |
3830 | | |
| 3830 | |
3831 | 3831 | } |
3832 | 3832 | |
3833 | | void CMainFrame::OnUpdateMenuSiteChangepass(CCmdUI* pCmdUI) |
| 3833 | void CMainFrame::OnUpdateMenuSiteChangepass(CCmdUI* pCmdUI) |
3834 | 3834 | { |
3835 | 3835 | pCmdUI->Enable( m_pCommandQueue->IsConnected() && !m_pCommandQueue->IsBusy() ); |
3836 | 3836 | } |
… |
… |
|
3851 | 3851 | // Show or hide the taskbar button for this app, depending on whether |
3852 | 3852 | // we're minimized right now or not. |
3853 | 3853 | |
3854 | | void CMainFrame::OnTrayExit() |
| 3854 | void CMainFrame::OnTrayExit() |
3855 | 3855 | { |
3856 | 3856 | if (!m_bQuit) |
3857 | | OnClose(); |
| 3857 | OnClose(); |
3858 | 3858 | } |
3859 | 3859 | |
3860 | | void CMainFrame::OnTrayRestore() |
| 3860 | void CMainFrame::OnTrayRestore() |
3861 | 3861 | { |
3862 | 3862 | ShowWindow(SW_RESTORE); |
3863 | 3863 | if (m_bMaxBeforeTray) |
… |
… |
|
3867 | 3867 | m_TrayIcon.HideIcon(); |
3868 | 3868 | } |
3869 | 3869 | |
3870 | | void CMainFrame::OnMenuViewShowhidden() |
| 3870 | void CMainFrame::OnMenuViewShowhidden() |
3871 | 3871 | { |
3872 | 3872 | m_bShowHiddenFiles=!m_bShowHiddenFiles; |
3873 | 3873 | if (m_pFileZillaApi) |
… |
… |
|
3876 | 3876 | RefreshViews(2); |
3877 | 3877 | } |
3878 | 3878 | |
3879 | | void CMainFrame::OnUpdateMenuViewShowhidden(CCmdUI* pCmdUI) |
| 3879 | void CMainFrame::OnUpdateMenuViewShowhidden(CCmdUI* pCmdUI) |
3880 | 3880 | { |
3881 | 3881 | pCmdUI->SetCheck(m_bShowHiddenFiles); |
3882 | | |
| 3882 | |
3883 | 3883 | } |
3884 | 3884 | |
3885 | | void CMainFrame::OnShowremotetree() |
| 3885 | void CMainFrame::OnShowremotetree() |
3886 | 3886 | { |
3887 | 3887 | if (!m_bShowRemoteTree) |
3888 | 3888 | { |
… |
… |
|
3907 | 3907 | GetFtpTreePane()->EnableTree(FALSE); |
3908 | 3908 | } |
3909 | 3909 | GetFtpTreePane()->UpdateViewHeader(); |
3910 | | GetFtpPane()->UpdateViewHeader(); |
| 3910 | GetFtpPane()->UpdateViewHeader(); |
3911 | 3911 | } |
3912 | 3912 | |
3913 | | void CMainFrame::OnUpdateShowremotetree(CCmdUI* pCmdUI) |
| 3913 | void CMainFrame::OnUpdateShowremotetree(CCmdUI* pCmdUI) |
3914 | 3914 | { |
3915 | | pCmdUI->SetCheck(m_bShowRemoteTree); |
| 3915 | pCmdUI->SetCheck(m_bShowRemoteTree); |
3916 | 3916 | } |
3917 | 3917 | |
3918 | 3918 | void CMainFrame::OnMenuDebugDumpDirectoryCache() |
… |
… |
|
3929 | 3929 | *p= 0; //Boom! |
3930 | 3930 | } |
3931 | 3931 | |
3932 | | void CMainFrame::OnMenuServerEnterrawcommand() |
| 3932 | void CMainFrame::OnMenuServerEnterrawcommand() |
3933 | 3933 | { |
3934 | 3934 | if (!m_pCommandQueue->IsConnected()) |
3935 | 3935 | return; |
… |
… |
|
3942 | 3942 | CMainFrame *pOwner=DYNAMIC_DOWNCAST(CMainFrame,pWnd); |
3943 | 3943 | if (!m_pCommandQueue->Command(command)) |
3944 | 3944 | MessageBeep(MB_ICONEXCLAMATION); |
3945 | | } |
| 3945 | } |
3946 | 3946 | } |
3947 | 3947 | |
3948 | | void CMainFrame::OnUpdateMenuServerEnterrawcommand(CCmdUI* pCmdUI) |
| 3948 | void CMainFrame::OnUpdateMenuServerEnterrawcommand(CCmdUI* pCmdUI) |
3949 | 3949 | { |
3950 | 3950 | if (m_pCommandQueue->IsConnected()) |
3951 | 3951 | { |
… |
… |
|
3967 | 3967 | nPort.Format( _T("%d"), site.nPort); |
3968 | 3968 | User=site.User; |
3969 | 3969 | Pass=site.Pass; |
3970 | | |
| 3970 | |
3971 | 3971 | if (site.nLogonType == 0) |
3972 | 3972 | { |
3973 | 3973 | User = "anonymous"; |
3974 | 3974 | Pass = "anon@"; |
3975 | 3975 | } |
3976 | | |
3977 | | if (Host=="") |
| 3976 | |
| 3977 | if (Host=="") |
3978 | 3978 | { |
3979 | 3979 | AfxMessageBox(IDS_ERRORMSG_HOSTNEEDED, MB_ICONEXCLAMATION); |
3980 | 3980 | return; |
3981 | 3981 | } |
3982 | | |
| 3982 | |
3983 | 3983 | int pos=Host.Find(':'); |
3984 | 3984 | if (pos!=-1) |
3985 | 3985 | { |
… |
… |
|
4018 | 4018 | return; |
4019 | 4019 | } |
4020 | 4020 | } |
4021 | | |
| 4021 | |
4022 | 4022 | pos=Host.ReverseFind('@'); |
4023 | 4023 | if (pos!=-1) |
4024 | | { |
| 4024 | { |
4025 | 4025 | CString tmp=Host.Left(pos); |
4026 | 4026 | int pos2=tmp.Find(':'); |
4027 | 4027 | if (pos2==-1) |
… |
… |
|
4032 | 4032 | Host=Host.Right(Host.GetLength()-pos-1); |
4033 | 4033 | User=tmp.Left(pos2); |
4034 | 4034 | Pass=tmp.Right(tmp.GetLength()-pos2-1); |
4035 | | |
| 4035 | |
4036 | 4036 | } |
4037 | 4037 | |
4038 | 4038 | int pos2 = Host.ReverseFind(']'); |
… |
… |
|
4093 | 4093 | default: |
4094 | 4094 | server.nServerType = FZ_SERVERTYPE_FTP; |
4095 | 4095 | } |
4096 | | |
| 4096 | |
4097 | 4097 | t_server currentserver; |
4098 | | if (site.RemoteDir!="" && m_pFileZillaApi->GetCurrentServer(currentserver) == FZ_REPLY_OK && |
| 4098 | if (site.RemoteDir!="" && m_pFileZillaApi->GetCurrentServer(currentserver) == FZ_REPLY_OK && |
4099 | 4099 | server==currentserver && !m_pCommandQueue->IsBusy()) |
4100 | 4100 | { |
4101 | 4101 | if (m_pCommandQueue->List(site.RemoteDir, FZ_LIST_USECACHE)) |
… |
… |
|
4113 | 4113 | m_pCommandQueue->Cancel(); |
4114 | 4114 | m_pCommandQueue->Disconnect(); |
4115 | 4115 | } |
4116 | | |
| 4116 | |
4117 | 4117 | if (site.LocalDir!="") |
4118 | 4118 | SetLocalFolder(site.LocalDir); |
4119 | 4119 | m_pCommandQueue->Connect(server); |
… |
… |
|
4137 | 4137 | ProcessQuickconnect(TRUE); |
4138 | 4138 | } |
4139 | 4139 | |
4140 | | BOOL CMainFrame::OnCommand(WPARAM wParam, LPARAM lParam) |
| 4140 | BOOL CMainFrame::OnCommand(WPARAM wParam, LPARAM lParam) |
4141 | 4141 | { |
4142 | 4142 | if (LOWORD(wParam)>=ID_QUICKCONNECTBAR_MENU_HISTORY1 && LOWORD(wParam)<=ID_QUICKCONNECTBAR_MENU_HISTORY10) |
4143 | 4143 | { |
… |
… |
|
4181 | 4181 | } |
4182 | 4182 | return TRUE; |
4183 | 4183 | } |
4184 | | |
| 4184 | |
4185 | 4185 | return CFrameWnd::OnCommand(wParam, lParam); |
4186 | 4186 | } |
4187 | 4187 | |
4188 | | void CMainFrame::OnMenuServerCopyurltoclipboard() |
| 4188 | void CMainFrame::OnMenuServerCopyurltoclipboard() |
4189 | 4189 | { |
4190 | 4190 | t_server server; |
4191 | 4191 | if (m_pFileZillaApi->GetCurrentServer(server)==FZ_REPLY_OK) |
… |
… |
|
4208 | 4208 | } |
4209 | 4209 | else if (server.port!=21) |
4210 | 4210 | tmp.Format(_T("%d"), server.port); |
4211 | | |
| 4211 | |
4212 | 4212 | if (tmp!="") |
4213 | 4213 | str+=_T(":")+tmp; |
4214 | 4214 | CString path=((CFtpListCtrl *)GetFtpPane()->GetListCtrl())->GetCurrentDirectory().GetPath(); |
… |
… |
|
4216 | 4216 | str+=_T("/"); |
4217 | 4217 | str+=path; |
4218 | 4218 | |
4219 | | OpenClipboard(); |
| 4219 | OpenClipboard(); |
4220 | 4220 | EmptyClipboard(); |
4221 | 4221 | HGLOBAL hData; |
4222 | 4222 | |
… |
… |
|
4227 | 4227 | GlobalUnlock(hData); |
4228 | 4228 | SetClipboardData(CF_TEXT,hData); |
4229 | 4229 | CloseClipboard(); |
4230 | | } |
| 4230 | } |
4231 | 4231 | } |
4232 | 4232 | |
4233 | | void CMainFrame::OnUpdateMenuServerCopyurltoclipboard(CCmdUI* pCmdUI) |
| 4233 | void CMainFrame::OnUpdateMenuServerCopyurltoclipboard(CCmdUI* pCmdUI) |
4234 | 4234 | { |
4235 | | pCmdUI->Enable(m_pCommandQueue->IsConnected()); |
| 4235 | pCmdUI->Enable(m_pCommandQueue->IsConnected()); |
4236 | 4236 | } |
4237 | 4237 | |
4238 | 4238 | |
… |
… |
|
4271 | 4271 | //CSiteManager::ReadTree( _T(""), menu.m_hMenu, ( LPVOID)&mt, NULL, NewItem_Menu, NewFolder_Menu, After_Menu); |
4272 | 4272 | CMenu* pPopup = &menu;//.GetSubMenu(0); |
4273 | 4273 | ASSERT(pPopup); |
4274 | | |
| 4274 | |
4275 | 4275 | CRect rc; |
4276 | 4276 | pWnd->SendMessage(TB_GETRECT, nmtb->iItem, (LPARAM)&rc); |
4277 | 4277 | pWnd->ClientToScreen(&rc); |
4278 | | |
| 4278 | |
4279 | 4279 | UINT res = pPopup->TrackPopupMenu( TPM_LEFTALIGN | TPM_LEFTBUTTON | TPM_VERTICAL | TPM_RETURNCMD | TPM_NONOTIFY, |
4280 | 4280 | rc.left, rc.bottom, this, &rc); |
4281 | 4281 | |
4282 | 4282 | if ( res > 0) |
4283 | 4283 | { |
4284 | 4284 | t_SiteManagerItem *site; |
4285 | | |
| 4285 | |
4286 | 4286 | int i; |
4287 | 4287 | std::list<t_SiteManagerItem *>::iterator iter=mt.m_Sites.begin(); |
4288 | 4288 | for (i=(res-10); i>0; i--) |
4289 | 4289 | iter++; |
4290 | 4290 | |
4291 | 4291 | site=*iter; |
4292 | | |
| 4292 | |
4293 | 4293 | if (site) |
4294 | 4294 | { |
4295 | 4295 | CSiteManager::ConnectSitePrepare(site); |
4296 | | |
| 4296 | |
4297 | 4297 | ParseSite(*site); |
4298 | 4298 | } |
4299 | 4299 | } |
… |
… |
|
4311 | 4311 | m_Host.TrimLeft(_T(" ")); |
4312 | 4312 | t_server server; |
4313 | 4313 | server.nServerType=0; |
4314 | | if (m_Host=="") |
| 4314 | if (m_Host=="") |
4315 | 4315 | { |
4316 | 4316 | m_pWndDlgBar->RedrawWindow(); |
4317 | 4317 | AfxMessageBox(IDS_ERRORMSG_HOSTNEEDED,MB_ICONEXCLAMATION); |
… |
… |
|
4363 | 4363 | { |
4364 | 4364 | if ( m_Host.GetLength()>(pos+1) && m_Host[pos+1]==' ') |
4365 | 4365 | path=m_Host.Right(m_Host.GetLength()-pos); |
4366 | | else |
| 4366 | else |
4367 | 4367 | path=m_Host.Right(m_Host.GetLength()-pos-1); |
4368 | 4368 | m_Host=m_Host.Left(pos); |
4369 | 4369 | if (m_Host=="") |
… |
… |
|
4393 | 4393 | m_pWndDlgBar->SetDlgItemText(IDC_USER,m_User); |
4394 | 4394 | m_pWndDlgBar->SetDlgItemText(IDC_PASS,m_Pass); |
4395 | 4395 | m_pWndDlgBar->SetDlgItemText(IDC_HOST,ServerPrefix+m_Host); |
4396 | | |
| 4396 | |
4397 | 4397 | } |
4398 | 4398 | |
4399 | 4399 | int pos2 = m_Host.ReverseFind(']'); |
… |
… |
|
4403 | 4403 | m_Port=m_Host.Right(m_Host.GetLength()-pos-1); |
4404 | 4404 | m_pWndDlgBar->SetDlgItemText(IDC_PORT,m_Port); |
4405 | 4405 | m_Host=m_Host.Left(pos); |
4406 | | m_pWndDlgBar->SetDlgItemText(IDC_HOST,ServerPrefix+m_Host); |
| 4406 | m_pWndDlgBar->SetDlgItemText(IDC_HOST,ServerPrefix+m_Host); |
4407 | 4407 | } |
4408 | 4408 | |
4409 | 4409 | if (m_Port=="") |
… |
… |
|
4430 | 4430 | if (COptions::GetOptionVal(OPTION_USEGSS)) |
4431 | 4431 | { |
4432 | 4432 | USES_CONVERSION; |
4433 | | |
| 4433 | |
4434 | 4434 | CString GssServers=COptions::GetOption(OPTION_GSSSERVERS); |
4435 | 4435 | hostent *fullname=gethostbyname(T2CA(m_Host)); |
4436 | 4436 | CString host; |
… |
… |
|
4462 | 4462 | } |
4463 | 4463 | m_pWndDlgBar->SetDlgItemText(IDC_USER,m_User); |
4464 | 4464 | m_pWndDlgBar->SetDlgItemText(IDC_PASS,m_Pass); |
4465 | | |
| 4465 | |
4466 | 4466 | } |
4467 | 4467 | if (!server.nServerType) |
4468 | 4468 | { |
… |
… |
|
4490 | 4490 | m_pCommandQueue->Connect(server); |
4491 | 4491 | if (path!="") |
4492 | 4492 | m_pCommandQueue->List(path,FZ_LIST_USECACHE,TRUE); |
4493 | | else |
| 4493 | else |
4494 | 4494 | m_pCommandQueue->List(FZ_LIST_USECACHE,TRUE); |
4495 | 4495 | |
4496 | 4496 | m_pWndDlgBar->RedrawWindow(); |
… |
… |
|
4513 | 4513 | } |
4514 | 4514 | else if (server.port!=21) |
4515 | 4515 | tmp.Format(_T("%d"), server.port); |
4516 | | |
| 4516 | |
4517 | 4517 | if (tmp!="") |
4518 | 4518 | str+=_T(":")+tmp; |
4519 | 4519 | |
… |
… |
|
4537 | 4537 | } |
4538 | 4538 | else if (iter->port!=21) |
4539 | 4539 | tmp.Format(_T("%d"), iter->port); |
4540 | | |
| 4540 | |
4541 | 4541 | if (tmp!="") |
4542 | 4542 | str2+=_T(":")+tmp; |
4543 | 4543 | |
… |
… |
|
4559 | 4559 | m_nRecentQuickconnectCommandOffset%=10; |
4560 | 4560 | } |
4561 | 4561 | |
4562 | | void CMainFrame::OnMenuViewRemotelistviewStatusbar() |
| 4562 | void CMainFrame::OnMenuViewRemotelistviewStatusbar() |
4563 | 4563 | { |
4564 | 4564 | GetFtpPane()->EnableStatusbar(!GetFtpPane()->IsStatusbarEnabled()); |
4565 | 4565 | } |
4566 | 4566 | |
4567 | | void CMainFrame::OnMenuViewLocallistviewStatusbar() |
| 4567 | void CMainFrame::OnMenuViewLocallistviewStatusbar() |
4568 | 4568 | { |
4569 | 4569 | GetLocalPane2()->EnableStatusbar(!GetLocalPane2()->IsStatusbarEnabled()); |
4570 | 4570 | } |
4571 | 4571 | |
4572 | | void CMainFrame::OnUpdateMenuViewRemotelistviewStatusbar(CCmdUI* pCmdUI) |
| 4572 | void CMainFrame::OnUpdateMenuViewRemotelistviewStatusbar(CCmdUI* pCmdUI) |
4573 | 4573 | { |
4574 | | pCmdUI->SetCheck(GetFtpPane()->IsStatusbarEnabled()); |
| 4574 | pCmdUI->SetCheck(GetFtpPane()->IsStatusbarEnabled()); |
4575 | 4575 | } |
4576 | 4576 | |
4577 | | void CMainFrame::OnUpdateMenuViewLocallistviewStatusbar(CCmdUI* pCmdUI) |
| 4577 | void CMainFrame::OnUpdateMenuViewLocallistviewStatusbar(CCmdUI* pCmdUI) |
4578 | 4578 | { |
4579 | | pCmdUI->SetCheck(GetLocalPane2()->IsStatusbarEnabled()); |
| 4579 | pCmdUI->SetCheck(GetLocalPane2()->IsStatusbarEnabled()); |
4580 | 4580 | } |
4581 | 4581 | |
4582 | | void CMainFrame::OnViewRemotelistviewOwnergroup() |
| 4582 | void CMainFrame::OnViewRemotelistviewOwnergroup() |
4583 | 4583 | { |
4584 | 4584 | m_nHideRemoteColumns ^= 0x20; |
4585 | | GetFtpPane()->m_pListCtrl->UpdateColumns(m_nHideRemoteColumns); |
| 4585 | GetFtpPane()->m_pListCtrl->UpdateColumns(m_nHideRemoteColumns); |
4586 | 4586 | } |
4587 | 4587 | |
4588 | | void CMainFrame::OnUpdateViewRemotelistviewOwnergroup(CCmdUI* pCmdUI) |
| 4588 | void CMainFrame::OnUpdateViewRemotelistviewOwnergroup(CCmdUI* pCmdUI) |
4589 | 4589 | { |
4590 | 4590 | pCmdUI->Enable(!m_nRemoteListViewStyle); |
4591 | 4591 | pCmdUI->SetCheck(!(m_nHideRemoteColumns&0x20)); |
… |
… |
|
4610 | 4610 | ID_HELPMENU_CONTENTS |
4611 | 4611 | }; |
4612 | 4612 | m_pWndToolBar = new CToolBar; |
4613 | | |
| 4613 | |
4614 | 4614 | if (!m_pWndToolBar->CreateEx(this, 0, WS_CHILD|WS_VISIBLE|CBRS_ALIGN_TOP, CRect(2, 2, 0, 0))) |
4615 | 4615 | { |
4616 | 4616 | TRACE0("Symbolleiste konnte nicht erstellt werden\n"); |
… |
… |
|
4628 | 4628 | TRACE0("Symbolleiste konnte nicht erstellt werden\n"); |
4629 | 4629 | return FALSE; // Fehler bei Erstellung |
4630 | 4630 | } |
4631 | | |
| 4631 | |
4632 | 4632 | int style = TBSTYLE_FLAT; |
4633 | 4633 | CVisualStylesXP xp; |
4634 | 4634 | if (xp.IsAppThemed()) |
… |
… |
|
4640 | 4640 | m_pWndToolBar->SetButtonStyle(m_pWndToolBar->CommandToIndex(ID_SITEMANAGER), dwStyle); |
4641 | 4641 | |
4642 | 4642 | m_pWndDlgBar = new CTransparentDialogBar; |
4643 | | if (!m_pWndDlgBar->Create(this, IDR_MAINFRAME, |
| 4643 | if (!m_pWndDlgBar->Create(this, IDR_MAINFRAME, |
4644 | 4644 | CBRS_ALIGN_TOP, AFX_IDW_DIALOGBAR)) |
4645 | 4645 | { |
4646 | 4646 | TRACE0("Dialogleiste konnte nicht erstellt werden\n"); |
… |
… |
|
4665 | 4665 | return TRUE; |
4666 | 4666 | } |
4667 | 4667 | |
4668 | | void CMainFrame::OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized) |
| 4668 | void CMainFrame::OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized) |
4669 | 4669 | { |
4670 | 4670 | CFrameWnd::OnActivate(nState, pWndOther, bMinimized); |
4671 | 4671 | |
RCS file: /cvsroot/filezilla/FileZilla/source/ManualTransferDlg.cpp,v
retrieving revision 1.7
diff -u -r1.7 ManualTransferDlg.cpp
|
|
|
30 | 30 | #endif |
31 | 31 | |
32 | 32 | ///////////////////////////////////////////////////////////////////////////// |
33 | | // Dialogfeld CManualTransferDlg |
| 33 | // Dialogfeld CManualTransferDlg |
34 | 34 | |
35 | 35 | |
36 | 36 | CManualTransferDlg::CManualTransferDlg(CWnd* pParent /*=NULL*/) |
… |
… |
|
82 | 82 | END_MESSAGE_MAP() |
83 | 83 | |
84 | 84 | ///////////////////////////////////////////////////////////////////////////// |
85 | | // Behandlungsroutinen für Nachrichten CManualTransferDlg |
| 85 | // Behandlungsroutinen für Nachrichten CManualTransferDlg |
86 | 86 | |
87 | 87 | int CManualTransferDlg::Show(t_transferfile &transferfile, t_server *pServer, CString LocalPath, CServerPath RemotePath) |
88 | 88 | { |
… |
… |
|
99 | 99 | return 0; |
100 | 100 | } |
101 | 101 | |
102 | | void CManualTransferDlg::OnOK() |
| 102 | void CManualTransferDlg::OnOK() |
103 | 103 | { |
104 | 104 | UpdateData(TRUE); |
105 | 105 | |
… |
… |
|
142 | 142 | AfxMessageBox(IDS_MANUALTRANSFER_LOCALFILE); |
143 | 143 | return; |
144 | 144 | } |
145 | | |
| 145 | |
146 | 146 | CServerPath path=m_RemotePath; |
147 | 147 | if (m_pServer) |
148 | 148 | path.SetServer(*m_pServer); |
… |
… |
|
198 | 198 | m_Transferfile.server=*m_pServer; |
199 | 199 | else |
200 | 200 | { |
201 | | if (m_Host=="") |
| 201 | if (m_Host=="") |
202 | 202 | { |
203 | 203 | GetDlgItem(IDC_MANUALTRANSFER_HOST)->SetFocus(); |
204 | 204 | AfxMessageBox(IDS_MANUALTRANSFER_HOST, MB_ICONEXCLAMATION); |
… |
… |
|
261 | 261 | m_Host=m_Host.Left(pos); |
262 | 262 | } |
263 | 263 | m_Transferfile.server.host=m_Host; |
264 | | |
| 264 | |
265 | 265 | if (m_Port=="") |
266 | 266 | m_Port="21"; |
267 | | |
| 267 | |
268 | 268 | int nPort=_ttoi(m_Port); |
269 | 269 | if (nPort<1 || nPort>65535) |
270 | 270 | { |
271 | 271 | GetDlgItem(IDC_MANUALTRANSFER_PORT)->SetFocus(); |
272 | 272 | AfxMessageBox(IDS_MANUALTRANSFER_PORT,MB_ICONEXCLAMATION); |
273 | 273 | return; |
274 | | } |
| 274 | } |
275 | 275 | m_Transferfile.server.port=nPort; |
276 | | |
| 276 | |
277 | 277 | if (m_nLogontype) |
278 | 278 | { |
279 | 279 | if (m_User=="") |
… |
… |
|
282 | 282 | if (COptions::GetOptionVal(OPTION_USEGSS)) |
283 | 283 | { |
284 | 284 | USES_CONVERSION; |
285 | | |
| 285 | |
286 | 286 | CString GssServers=COptions::GetOption(OPTION_GSSSERVERS); |
287 | 287 | hostent *fullname=gethostbyname(T2CA(m_Host)); |
288 | 288 | CString host; |
… |
… |
|
356 | 356 | CDialog::OnOK(); |
357 | 357 | } |
358 | 358 | |
359 | | BOOL CManualTransferDlg::OnInitDialog() |
| 359 | BOOL CManualTransferDlg::OnInitDialog() |
360 | 360 | { |
361 | 361 | CDialog::OnInitDialog(); |
362 | 362 | |
… |
… |
|
374 | 374 | |
375 | 375 | UpdateData(FALSE); |
376 | 376 | SetCtrlState(); |
377 | | |
| 377 | |
378 | 378 | return TRUE; // return TRUE unless you set the focus to a control |
379 | 379 | // EXCEPTION: OCX-Eigenschaftenseiten sollten FALSE zurückgeben |
380 | 380 | } |
… |
… |
|
415 | 415 | |
416 | 416 | } |
417 | 417 | |
418 | | void CManualTransferDlg::OnManualtransferServer() |
| 418 | void CManualTransferDlg::OnManualtransferServer() |
419 | 419 | { |
420 | | SetCtrlState(); |
| 420 | SetCtrlState(); |
421 | 421 | } |
422 | 422 | |
423 | | void CManualTransferDlg::OnManualtransferLogontype() |
| 423 | void CManualTransferDlg::OnManualtransferLogontype() |
424 | 424 | { |
425 | | SetCtrlState(); |
| 425 | SetCtrlState(); |
426 | 426 | } |
RCS file: /cvsroot/filezilla/FileZilla/source/Options.cpp,v
retrieving revision 1.112
diff -u -r1.112 Options.cpp
|
|
|
41 | 41 | CString COptions::m_sConfigFile; |
42 | 42 | |
43 | 43 | ///////////////////////////////////////////////////////////////////////////// |
44 | | // Dialogfeld COptions |
| 44 | // Dialogfeld COptions |
45 | 45 | |
46 | 46 | COptions::COptions(CWnd* pParent /*=NULL*/) |
47 | 47 | //: CSAPrefsDialog(pParent) |
… |
… |
|
67 | 67 | END_MESSAGE_MAP() |
68 | 68 | |
69 | 69 | ///////////////////////////////////////////////////////////////////////////// |
70 | | // Behandlungsroutinen für Nachrichten COptions |
| 70 | // Behandlungsroutinen für Nachrichten COptions |
71 | 71 | |
72 | 72 | BOOL COptions::Show() |
73 | 73 | { |
… |
… |
|
92 | 92 | AddPage(m_OptionsPaneLayoutPage, IDS_OPTIONSPAGE_PANELAYOUT, &m_OptionsInterfacePage); |
93 | 93 | AddPage(m_OptionsLoggingPage, IDS_OPTIONSPAGE_LOGGING, &m_OptionsInterfacePage); |
94 | 94 | AddPage(m_OptionsDebugPage, IDS_OPTIONSPAGE_DEBUG); |
95 | | |
96 | | |
| 95 | |
| 96 | |
97 | 97 | SetConstantText("FileZilla"); |
98 | 98 | |
99 | 99 | m_OptionsFtpProxyPage.m_logontype=GetOptionVal(OPTION_LOGONTYPE); |
… |
… |
|
118 | 118 | //Init type page |
119 | 119 | m_OptionsTypePage.m_nTypeMode = GetOptionVal(OPTION_TRANSFERMODE); |
120 | 120 | m_OptionsTypePage.m_AsciiFiles = GetOption(OPTION_ASCIIFILES); |
121 | | |
| 121 | |
122 | 122 | //Init misc page |
123 | 123 | m_OptionsMiscPage.m_nFolderType = GetOptionVal(OPTION_DEFAULTFOLDERTYPE); |
124 | 124 | m_OptionsMiscPage.m_DefaultFolder = GetOption(OPTION_DEFAULTFOLDER); |
… |
… |
|
151 | 151 | m_OptionsLocalViewPage.m_bShowStatusBar = GetOptionVal(OPTION_SHOWLOCALSTATUSBAR); |
152 | 152 | m_OptionsLocalViewPage.m_bRememberColumnSort = GetOptionVal(OPTION_LOCALCOLUMNSORT) ? TRUE : FALSE; |
153 | 153 | m_OptionsLocalViewPage.m_nDoubleclickAction = GetOptionVal(OPTION_LOCAL_DOUBLECLICK_ACTION); |
154 | | |
| 154 | |
155 | 155 | //Init remote view page |
156 | 156 | m_OptionsRemoteViewPage.m_nViewMode = GetOptionVal(OPTION_REMEMBERREMOTEVIEW); |
157 | 157 | m_OptionsRemoteViewPage.m_nRemoteStyle = GetOptionVal(OPTION_REMOTELISTVIEWSTYLE); |
… |
… |
|
168 | 168 | m_OptionsRemoteViewPage.m_bShowStatusBar = GetOptionVal(OPTION_SHOWREMOTESTATUSBAR); |
169 | 169 | m_OptionsRemoteViewPage.m_bRememberColumnSort = GetOptionVal(OPTION_REMOTECOLUMNSORT) ? TRUE : FALSE; |
170 | 170 | m_OptionsRemoteViewPage.m_nDoubleclickAction = GetOptionVal(OPTION_REMOTE_DOUBLECLICK_ACTION); |
171 | | |
| 171 | |
172 | 172 | //Init GSS Page |
173 | 173 | m_OptionsGssPage.m_bUseGSS=GetOptionVal(OPTION_USEGSS); |
174 | | m_OptionsGssPage.m_GssServers=GetOption(OPTION_GSSSERVERS); |
| 174 | m_OptionsGssPage.m_GssServers=GetOption(OPTION_GSSSERVERS); |
175 | 175 | |
176 | 176 | //Init Debug Page |
177 | 177 | m_OptionsDebugPage.m_bEngineTrace=GetOptionVal(OPTION_DEBUGTRACE); |
… |
… |
|
187 | 187 | m_OptionsFirewallPage.m_TransferIP = GetOption(OPTION_TRANSFERIP); |
188 | 188 | m_OptionsFirewallPage.m_bUseTransferIP6 = (GetOption(OPTION_TRANSFERIP6)!="") ? TRUE : FALSE; |
189 | 189 | m_OptionsFirewallPage.m_TransferIP6 = GetOption(OPTION_TRANSFERIP6); |
190 | | |
| 190 | |
191 | 191 | //Init Directory Cache page |
192 | 192 | m_OptionsDirCachePage.m_bUseCache=GetOptionVal(OPTION_USECACHE)?1:0; |
193 | 193 | m_OptionsDirCachePage.m_nHours=GetOptionVal(OPTION_MAXCACHETIME)/3600; |
… |
… |
|
249 | 249 | BOOL res = DoModal(); |
250 | 250 | if (res != IDOK) |
251 | 251 | return FALSE; |
252 | | |
| 252 | |
253 | 253 | SetOption(OPTION_LOGONTYPE,m_OptionsFtpProxyPage.m_logontype); |
254 | 254 | SetOption(OPTION_FWHOST,m_OptionsFtpProxyPage.m_fwhost); |
255 | 255 | SetOption(OPTION_FWPORT,m_OptionsFtpProxyPage.m_fwport); |
… |
… |
|
257 | 257 | SetOption(OPTION_FWPASS,CCrypt::encrypt(m_OptionsFtpProxyPage.m_fwpass)); |
258 | 258 | SetOption(OPTION_TIMEOUTLENGTH,m_OptionsPage2.m_Timeout); |
259 | 259 | SetOption(OPTION_KEEPALIVE,m_OptionsPage2.m_UseKeepAlive); |
260 | | |
| 260 | |
261 | 261 | if (m_OptionsPage2.m_UseKeepAlive) |
262 | 262 | { |
263 | 263 | SetOption(OPTION_INTERVALLOW,_ttoi(m_OptionsPage2.m_IntervalLow)); |
… |
… |
|
292 | 292 | SetOption(OPTION_SHOWNOSTATUSBAR,!m_OptionsInterfacePage.m_bShowStatusBar); |
293 | 293 | SetOption(OPTION_SHOWNOMESSAGELOG,!m_OptionsInterfacePage.m_bShowMessageLog); |
294 | 294 | SetOption(OPTION_SHOWNOTREEVIEW,!m_OptionsInterfacePage.m_bShowLocalTree); |
295 | | SetOption(OPTION_SHOWREMOTETREEVIEW, m_OptionsInterfacePage.m_bShowRemoteTree); |
| 295 | SetOption(OPTION_SHOWREMOTETREEVIEW, m_OptionsInterfacePage.m_bShowRemoteTree); |
296 | 296 | SetOption(OPTION_SHOWNOQUEUE,!m_OptionsInterfacePage.m_bShowQueue); |
297 | 297 | SetOption(OPTION_SHOWNOLABEL,!m_OptionsInterfacePage.m_bShowViewLabels); |
298 | 298 | SetOption(OPTION_REMEMBERVIEWS,m_OptionsInterfacePage.m_nViewMode); |
299 | 299 | SetOption(OPTION_REMEMBERLASTWINDOWPOS,m_OptionsInterfacePage.m_bRememberWindowPos); |
300 | 300 | SetOption(OPTION_MINIMIZETOTRAY, m_OptionsInterfacePage.m_nMinimize); |
301 | | |
| 301 | |
302 | 302 | //Store local view page |
303 | 303 | SetOption(OPTION_REMEMBERLOCALVIEW,m_OptionsLocalViewPage.m_nViewMode); |
304 | 304 | SetOption(OPTION_LOCALLISTVIEWSTYLE,m_OptionsLocalViewPage.m_nLocalStyle); |
305 | | |
| 305 | |
306 | 306 | nLocalHide=0; |
307 | 307 | if (!m_OptionsLocalViewPage.m_bSize) |
308 | 308 | nLocalHide|=1; |
… |
… |
|
319 | 319 | else if (!m_OptionsLocalViewPage.m_bRememberColumnSort && GetOptionVal(OPTION_LOCALCOLUMNSORT)) |
320 | 320 | SetOption(OPTION_LOCALCOLUMNSORT, 0); |
321 | 321 | SetOption(OPTION_LOCAL_DOUBLECLICK_ACTION, m_OptionsLocalViewPage.m_nDoubleclickAction); |
322 | | |
| 322 | |
323 | 323 | //Store remote view page |
324 | 324 | SetOption(OPTION_REMEMBERREMOTEVIEW, m_OptionsRemoteViewPage.m_nViewMode); |
325 | 325 | SetOption(OPTION_REMOTELISTVIEWSTYLE, m_OptionsRemoteViewPage.m_nRemoteStyle); |
326 | | |
| 326 | |
327 | 327 | nRemoteHide = 0; |
328 | 328 | if (!m_OptionsRemoteViewPage.m_bSize) |
329 | 329 | nRemoteHide |= 1; |
… |
… |
|
347 | 347 | else if (!m_OptionsRemoteViewPage.m_bRememberColumnSort && GetOptionVal(OPTION_REMOTECOLUMNSORT)) |
348 | 348 | SetOption(OPTION_REMOTECOLUMNSORT, 0); |
349 | 349 | SetOption(OPTION_REMOTE_DOUBLECLICK_ACTION, m_OptionsRemoteViewPage.m_nDoubleclickAction); |
350 | | |
| 350 | |
351 | 351 | //Store the GSS settings |
352 | 352 | SetOption(OPTION_USEGSS,m_OptionsGssPage.m_bUseGSS); |
353 | 353 | SetOption(OPTION_GSSSERVERS,m_OptionsGssPage.m_GssServers); |
… |
… |
|
368 | 368 | //Store Directory Cache settings |
369 | 369 | SetOption(OPTION_USECACHE,m_OptionsDirCachePage.m_bUseCache); |
370 | 370 | SetOption(OPTION_MAXCACHETIME,m_OptionsDirCachePage.m_nHours*3600+m_OptionsDirCachePage.m_nMinutes*60+m_OptionsDirCachePage.m_nSeconds); |
371 | | |
| 371 | |
372 | 372 | //Store Transfer page |
373 | 373 | SetOption(OPTION_PRESERVEDOWNLOADFILETIME, m_OptionsTransferPage.m_bPreserveTime); |
374 | 374 | int value=_ttoi(m_OptionsTransferPage.m_MaxPrimarySize); |
… |
… |
|
436 | 436 | return TRUE; |
437 | 437 | } |
438 | 438 | |
439 | | BOOL COptions::OnInitDialog() |
| 439 | BOOL COptions::OnInitDialog() |
440 | 440 | { |
441 | 441 | CSAPrefsDialog::OnInitDialog(); |
442 | | |
| 442 | |
443 | 443 | return TRUE; // return TRUE unless you set the focus to a control |
444 | 444 | // EXCEPTION: OCX-Eigenschaftenseiten sollten FALSE zurückgeben |
445 | 445 | } |
… |
… |
|
557 | 557 | unsigned char tmp[4]; |
558 | 558 | memcpy(tmp,&value,4); |
559 | 559 | HKEY key; |
560 | | if (RegCreateKeyEx(HKEY_CURRENT_USER, _T("Software\\FileZilla"), 0, 0, REG_OPTION_NON_VOLATILE, KEY_WRITE, 0, &key, NULL)==ERROR_SUCCESS) |
| 560 | if (RegCreateKeyEx(HKEY_CURRENT_USER, _T("Software\\FileZilla"), 0, 0, REG_OPTION_NON_VOLATILE, KEY_WRITE, 0, &key, NULL)==ERROR_SUCCESS) |
561 | 561 | { |
562 | 562 | RegSetValueEx(key, options[nOptionID-1].name, 0, REG_DWORD, tmp, 4); |
563 | 563 | RegCloseKey(key); |
… |
… |
|
576 | 576 | m_OptionsCache[nOptionID-1].createtime=CTime::GetCurrentTime(); |
577 | 577 | m_OptionsCache[nOptionID-1].str=value; |
578 | 578 | m_OptionsCache[nOptionID-1].nType=0; |
579 | | |
| 579 | |
580 | 580 | if (m_bUseXML) |
581 | 581 | { |
582 | 582 | m_markup.ResetPos(); |
583 | 583 | if (!m_markup.FindChildElem( _T("Settings") )) |
584 | 584 | m_markup.AddChildElem( _T("Settings") ); |
585 | | |
| 585 | |
586 | 586 | CString str; |
587 | 587 | m_markup.IntoElem(); |
588 | 588 | str=m_markup.GetTagName(); |
… |
… |
|
613 | 613 | LPCTSTR str=value; |
614 | 614 | _tcscpy(tmp,str); |
615 | 615 | HKEY key; |
616 | | if (RegCreateKeyEx(HKEY_CURRENT_USER, _T("Software\\FileZilla"), 0, 0, REG_OPTION_NON_VOLATILE, KEY_WRITE, 0, &key, NULL)==ERROR_SUCCESS) |
| 616 | if (RegCreateKeyEx(HKEY_CURRENT_USER, _T("Software\\FileZilla"), 0, 0, REG_OPTION_NON_VOLATILE, KEY_WRITE, 0, &key, NULL)==ERROR_SUCCESS) |
617 | 617 | { |
618 | 618 | RegSetValueEx(key, options[nOptionID-1].name, 0, REG_SZ, (unsigned char *)tmp, (_tcslen(tmp)+1)*sizeof(TCHAR) ); |
619 | 619 | RegCloseKey(key); |
… |
… |
|
625 | 625 | CString COptions::GetOption(int nOptionID) |
626 | 626 | { |
627 | 627 | ASSERT(!options[nOptionID-1].nType); |
628 | | |
| 628 | |
629 | 629 | Init(); |
630 | 630 | CSingleLock lock(&m_Sync, TRUE); |
631 | 631 | |
… |
… |
|
634 | 634 | { |
635 | 635 | ASSERT(!m_OptionsCache[nOptionID-1].nType); |
636 | 636 | CTimeSpan span=CTime::GetCurrentTime()-m_OptionsCache[nOptionID-1].createtime; |
637 | | if (span.GetTotalSeconds()<120 || m_bUseXML) |
| 637 | if (span.GetTotalSeconds()<120 || m_bUseXML) |
638 | 638 | res=m_OptionsCache[nOptionID-1].str; |
639 | 639 | else |
640 | 640 | m_OptionsCache[nOptionID-1].bCached=FALSE; |
… |
… |
|
645 | 645 | unsigned long tmp=2000; |
646 | 646 | unsigned char *buffer=new unsigned char[2000]; |
647 | 647 | BOOL exists = FALSE; |
648 | | |
| 648 | |
649 | 649 | if (RegOpenKey(HKEY_CURRENT_USER, _T("Software\\FileZilla"), &key)==ERROR_SUCCESS) |
650 | 650 | { |
651 | 651 | memset(buffer, 0, 2000); |
652 | | |
653 | | if (RegQueryValueEx(key, options[nOptionID-1].name, NULL, NULL, buffer, &tmp)==ERROR_SUCCESS) |
| 652 | |
| 653 | if (RegQueryValueEx(key, options[nOptionID-1].name, NULL, NULL, buffer, &tmp)==ERROR_SUCCESS) |
654 | 654 | { |
655 | 655 | exists=TRUE; |
656 | 656 | res=(LPTSTR)buffer; |
657 | 657 | } |
658 | 658 | RegCloseKey(key); |
659 | 659 | } |
660 | | |
| 660 | |
661 | 661 | if (!exists || (!_ttoi(res) && nOptionID==OPTION_RUNINSECUREMODE)) |
662 | 662 | { |
663 | 663 | memset(buffer, 0, 2000); |
… |
… |
|
713 | 713 | HKEY key; |
714 | 714 | unsigned char *buffer = new unsigned char[200]; |
715 | 715 | unsigned long tmp=100; |
716 | | |
| 716 | |
717 | 717 | if (RegOpenKey(HKEY_CURRENT_USER, _T("Software\\FileZilla") ,&key)==ERROR_SUCCESS) |
718 | 718 | { |
719 | 719 | DWORD type; |
720 | | if (RegQueryValueEx(key, options[nOptionID-1].name, NULL, &type, buffer, &tmp)==ERROR_SUCCESS) |
| 720 | if (RegQueryValueEx(key, options[nOptionID-1].name, NULL, &type, buffer, &tmp)==ERROR_SUCCESS) |
721 | 721 | { |
722 | 722 | if (type == REG_DWORD) |
723 | 723 | { |
724 | | if (tmp<=4) |
| 724 | if (tmp<=4) |
725 | 725 | { |
726 | 726 | memcpy(&val,buffer,tmp); |
727 | 727 | error=0; |
… |
… |
|
745 | 745 | } |
746 | 746 | RegCloseKey(key); |
747 | 747 | } |
748 | | |
| 748 | |
749 | 749 | if (error) |
750 | 750 | { |
751 | 751 | memset(buffer,0,100); |
… |
… |
|
756 | 756 | { |
757 | 757 | if (type == REG_DWORD) |
758 | 758 | { |
759 | | if (tmp<=4) |
| 759 | if (tmp<=4) |
760 | 760 | { |
761 | 761 | memcpy(&val,buffer,tmp); |
762 | 762 | error=0; |
… |
… |
|
773 | 773 | } |
774 | 774 | if (i == 100) |
775 | 775 | str[99] = 0; |
776 | | |
| 776 | |
777 | 777 | val = _ttoi(str); |
778 | 778 | error = 0; |
779 | 779 | } |
… |
… |
|
782 | 782 | } |
783 | 783 | } |
784 | 784 | delete [] buffer; |
785 | | } |
| 785 | } |
786 | 786 | switch (nOptionID) |
787 | 787 | { |
788 | 788 | case OPTION_KEEPALIVE: |
… |
… |
|
800 | 800 | val=30; |
801 | 801 | else if (val<15) |
802 | 802 | val=30; |
803 | | break; |
| 803 | break; |
804 | 804 | case OPTION_TIMEOUTLENGTH: |
805 | 805 | if (val<30) |
806 | 806 | val=30; |
… |
… |
|
932 | 932 | return val; |
933 | 933 | } |
934 | 934 | |
935 | | void COptions::OnOK() |
| 935 | void COptions::OnOK() |
936 | 936 | { |
937 | 937 | if (!UpdateData(true)) |
938 | 938 | return; |
… |
… |
|
981 | 981 | CString str; |
982 | 982 | str.Format(IDS_OPTIONS_TIMEOUT, 0, 999); |
983 | 983 | AfxMessageBox(str, MB_ICONEXCLAMATION); |
984 | | return; |
| 984 | return; |
985 | 985 | } |
986 | | |
987 | | |
| 986 | |
| 987 | |
988 | 988 | int val=_ttoi(m_OptionsPage2.m_NumRetries); |
989 | 989 | if ((val<0)||(val>999)) |
990 | 990 | { |
… |
… |
|
994 | 994 | str.Format(IDS_OPTIONS_NUMRETRIES,0,999); |
995 | 995 | AfxMessageBox(str,MB_ICONEXCLAMATION); |
996 | 996 | return; |
997 | | |
| 997 | |
998 | 998 | } |
999 | | |
| 999 | |
1000 | 1000 | val=_ttoi(m_OptionsPage2.m_Delay); |
1001 | 1001 | if ((val<0)||(val>999)) |
1002 | 1002 | { |
… |
… |
|
1006 | 1006 | str.Format(IDS_OPTIONS_RETRYDELAY,0,999); |
1007 | 1007 | AfxMessageBox(str,MB_ICONEXCLAMATION); |
1008 | 1008 | return; |
1009 | | |
| 1009 | |
1010 | 1010 | } |
1011 | | |
| 1011 | |
1012 | 1012 | if (m_OptionsProxyPage.m_Type) |
1013 | 1013 | { |
1014 | 1014 | if (m_OptionsProxyPage.m_Host=="") |
… |
… |
|
1027 | 1027 | return; |
1028 | 1028 | } |
1029 | 1029 | } |
1030 | | |
| 1030 | |
1031 | 1031 | if (m_OptionsTypePage.m_AsciiFiles=="") |
1032 | 1032 | { |
1033 | 1033 | m_OptionsTypePage.m_AsciiFiles=""; |
… |
… |
|
1040 | 1040 | m_OptionsTypePage.m_AsciiFiles.TrimRight( _T(";") ); |
1041 | 1041 | m_OptionsTypePage.m_AsciiFiles+=";"; |
1042 | 1042 | } |
1043 | | |
| 1043 | |
1044 | 1044 | if (m_OptionsGssPage.m_GssServers=="") |
1045 | 1045 | { |
1046 | 1046 | m_OptionsGssPage.m_GssServers=""; |
… |
… |
|
1097 | 1097 | if (i!=str.GetLength()) |
1098 | 1098 | { |
1099 | 1099 | line=str.Left(i); |
1100 | | |
| 1100 | |
1101 | 1101 | str=str.Mid(i+1); |
1102 | 1102 | i=-1; |
1103 | 1103 | } |
… |
… |
|
1133 | 1133 | qpos=line.Find( _T("\"") ); |
1134 | 1134 | if (qpos==-1) |
1135 | 1135 | continue; |
1136 | | |
| 1136 | |
1137 | 1137 | ext=line.Left(qpos); |
1138 | 1138 | ext.TrimLeft( _T(" ") ); |
1139 | 1139 | ext.TrimRight( _T(" ") ); |
… |
… |
|
1159 | 1159 | AfxMessageBox(IDS_OPTIONS_IDENTUSERID, MB_ICONEXCLAMATION); |
1160 | 1160 | return; |
1161 | 1161 | } |
1162 | | |
| 1162 | |
1163 | 1163 | if(m_OptionsIdentPage.m_System.IsEmpty()) |
1164 | 1164 | { |
1165 | 1165 | ShowPage(&m_OptionsIdentPage); |
… |
… |
|
1192 | 1192 | { |
1193 | 1193 | LPVOID ptr=0; |
1194 | 1194 | UINT ptrlen; |
1195 | | |
| 1195 | |
1196 | 1196 | TCHAR SubBlock[50]; |
1197 | | |
| 1197 | |
1198 | 1198 | // Structure used to store enumerated languages and code pages. |
1199 | 1199 | struct LANGANDCODEPAGE { |
1200 | 1200 | WORD wLanguage; |
1201 | 1201 | WORD wCodePage; |
1202 | 1202 | } *lpTranslate; |
1203 | | |
| 1203 | |
1204 | 1204 | UINT cbTranslate; |
1205 | | |
| 1205 | |
1206 | 1206 | // Read the list of languages and code pages. |
1207 | | if (VerQueryValue(pBlock, |
| 1207 | if (VerQueryValue(pBlock, |
1208 | 1208 | TEXT("\\VarFileInfo\\Translation"), |
1209 | 1209 | (LPVOID*)&lpTranslate, |
1210 | 1210 | &cbTranslate)) |
1211 | 1211 | { |
1212 | 1212 | // Read the file description for each language and code page. |
1213 | | |
1214 | | _stprintf( SubBlock, |
| 1213 | |
| 1214 | _stprintf( SubBlock, |
1215 | 1215 | _T("\\StringFileInfo\\%04x%04x\\ProductName"), |
1216 | 1216 | lpTranslate[0].wLanguage, |
1217 | 1217 | lpTranslate[0].wCodePage); |
1218 | | // Retrieve file description for language and code page "0". |
1219 | | if (VerQueryValue(pBlock, |
1220 | | SubBlock, |
1221 | | &ptr, |
| 1218 | // Retrieve file description for language and code page "0". |
| 1219 | if (VerQueryValue(pBlock, |
| 1220 | SubBlock, |
| 1221 | &ptr, |
1222 | 1222 | &ptrlen)) |
1223 | 1223 | { |
1224 | 1224 | LPTSTR pname=(LPTSTR)ptr; |
1225 | 1225 | CString productname=pname; |
1226 | 1226 | if ( productname==_T("FileZilla Language DLL") ) |
1227 | 1227 | { |
1228 | | _stprintf( SubBlock, |
| 1228 | _stprintf( SubBlock, |
1229 | 1229 | _T("\\StringFileInfo\\%04x%04x\\Comments"), |
1230 | 1230 | lpTranslate[0].wLanguage, |
1231 | 1231 | lpTranslate[0].wCodePage); |
1232 | | |
1233 | | if (VerQueryValue(pBlock, |
1234 | | SubBlock, |
1235 | | &ptr, |
| 1232 | |
| 1233 | if (VerQueryValue(pBlock, |
| 1234 | SubBlock, |
| 1235 | &ptr, |
1236 | 1236 | &ptrlen)) |
1237 | 1237 | { |
1238 | 1238 | LPTSTR comment=(LPTSTR)ptr; |
1239 | 1239 | if (m_OptionsLanguagePage.m_LanguageStringList.find(comment)==m_OptionsLanguagePage.m_LanguageStringList.end()) |
1240 | | m_OptionsLanguagePage.m_LanguageStringList.insert(comment); |
| 1240 | m_OptionsLanguagePage.m_LanguageStringList.insert(comment); |
1241 | 1241 | } |
1242 | 1242 | } |
1243 | 1243 | } |
1244 | | |
| 1244 | |
1245 | 1245 | } |
1246 | 1246 | } |
1247 | 1247 | delete [] str; |
… |
… |
|
1300 | 1300 | UINT cbTranslate; |
1301 | 1301 | |
1302 | 1302 | // Read the list of languages and code pages. |
1303 | | if (VerQueryValue(pBlock, |
| 1303 | if (VerQueryValue(pBlock, |
1304 | 1304 | TEXT("\\VarFileInfo\\Translation"), |
1305 | 1305 | (LPVOID*)&lpTranslate, |
1306 | 1306 | &cbTranslate)) |
1307 | 1307 | { |
1308 | 1308 | // Read the file description for each language and code page. |
1309 | 1309 | |
1310 | | _stprintf( SubBlock, |
| 1310 | _stprintf( SubBlock, |
1311 | 1311 | _T("\\StringFileInfo\\%04x%04x\\ProductName"), |
1312 | 1312 | lpTranslate[0].wLanguage, |
1313 | 1313 | lpTranslate[0].wCodePage); |
1314 | | // Retrieve file description for language and code page "0". |
1315 | | if (VerQueryValue(pBlock, |
1316 | | SubBlock, |
1317 | | &ptr, |
| 1314 | // Retrieve file description for language and code page "0". |
| 1315 | if (VerQueryValue(pBlock, |
| 1316 | SubBlock, |
| 1317 | &ptr, |
1318 | 1318 | &ptrlen)) |
1319 | 1319 | { |
1320 | 1320 | LPTSTR pname=(LPTSTR)ptr; |
1321 | 1321 | CString productname=pname; |
1322 | 1322 | if ( productname==("FileZilla Language DLL") ) |
1323 | 1323 | { |
1324 | | _stprintf( SubBlock, |
| 1324 | _stprintf( SubBlock, |
1325 | 1325 | _T("\\StringFileInfo\\%04x%04x\\Comments"), |
1326 | 1326 | lpTranslate[0].wLanguage, |
1327 | 1327 | lpTranslate[0].wCodePage); |
1328 | | |
1329 | | if (VerQueryValue(pBlock, |
1330 | | SubBlock, |
1331 | | &ptr, |
| 1328 | |
| 1329 | if (VerQueryValue(pBlock, |
| 1330 | SubBlock, |
| 1331 | &ptr, |
1332 | 1332 | &ptrlen)) |
1333 | 1333 | { |
1334 | 1334 | LPTSTR comment=(LPTSTR)ptr; |
… |
… |
|
1350 | 1350 | if (((CFileZillaApp *)AfxGetApp())->m_bLangSet) |
1351 | 1351 | FreeLibrary(AfxGetResourceHandle()); |
1352 | 1352 | ((CFileZillaApp *)AfxGetApp())->m_bLangSet=TRUE; |
1353 | | |
| 1353 | |
1354 | 1354 | HINSTANCE dll=LoadLibrary(fn); |
1355 | 1355 | if (dll) |
1356 | 1356 | AfxSetResourceHandle(dll); |
… |
… |
|
1444 | 1444 | } |
1445 | 1445 | } |
1446 | 1446 | |
1447 | | void COptions::OnPhelp() |
| 1447 | void COptions::OnPhelp() |
1448 | 1448 | { |
1449 | 1449 | CString help=AfxGetApp()->m_pszHelpFilePath; |
1450 | 1450 | help+="::/configuration.htm"; |
… |
… |
|
1458 | 1458 | #endif |
1459 | 1459 | |
1460 | 1460 | if (pHtmlHelp) |
1461 | | pHtmlHelp(m_hWnd, help,HH_DISPLAY_TOC,0); |
| 1461 | pHtmlHelp(m_hWnd, help,HH_DISPLAY_TOC,0); |
1462 | 1462 | } |
1463 | 1463 | } |
1464 | 1464 | |
… |
… |
|
1480 | 1480 | return; |
1481 | 1481 | else if (status.m_attribute&FILE_ATTRIBUTE_DIRECTORY) |
1482 | 1482 | return; |
1483 | | |
| 1483 | |
1484 | 1484 | if (!status.m_size) |
1485 | 1485 | { |
1486 | 1486 | m_bUseXML = TRUE; |
… |
… |
|
1494 | 1494 | { |
1495 | 1495 | if (!m_markup.FindChildElem( _T("Settings") )) |
1496 | 1496 | m_markup.AddChildElem( _T("Settings") ); |
1497 | | |
| 1497 | |
1498 | 1498 | CString str; |
1499 | 1499 | m_markup.IntoElem(); |
1500 | 1500 | str=m_markup.GetTagName(); |
… |
… |
|
1573 | 1573 | { |
1574 | 1574 | if (!m_markup.FindChildElem( _T("Settings") )) |
1575 | 1575 | m_markup.AddChildElem( _T("Settings") ); |
1576 | | |
| 1576 | |
1577 | 1577 | CString str; |
1578 | 1578 | m_markup.IntoElem(); |
1579 | 1579 | str=m_markup.GetTagName(); |
… |
… |
|
1701 | 1701 | else |
1702 | 1702 | return TRUE; |
1703 | 1703 | } |
1704 | | else |
| 1704 | else |
1705 | 1705 | return FALSE; |
1706 | 1706 | } |
1707 | 1707 | |
1708 | 1708 | void COptions::GetKey(HKEY key, CString keyname, CString &value) |
1709 | 1709 | { |
1710 | 1710 | unsigned char *buffer=new unsigned char[1000]; |
1711 | | |
| 1711 | |
1712 | 1712 | unsigned long tmp=1000; |
1713 | | if (RegQueryValueEx(key, keyname, NULL, NULL, buffer, &tmp)!=ERROR_SUCCESS) |
| 1713 | if (RegQueryValueEx(key, keyname, NULL, NULL, buffer, &tmp)!=ERROR_SUCCESS) |
1714 | 1714 | value=""; |
1715 | | else |
| 1715 | else |
1716 | 1716 | value=(LPTSTR)buffer; |
1717 | 1717 | delete [] buffer; |
1718 | 1718 | return; |
… |
… |
|
1728 | 1728 | void COptions::GetKey(HKEY key, CString keyname, __int64 &value) |
1729 | 1729 | { |
1730 | 1730 | unsigned char *buffer=new unsigned char[1000]; |
1731 | | |
| 1731 | |
1732 | 1732 | unsigned long tmp=1000; |
1733 | 1733 | if (RegQueryValueEx(key,keyname,NULL,NULL,buffer,&tmp)!=ERROR_SUCCESS) |
1734 | 1734 | value=0; |
1735 | | else |
| 1735 | else |
1736 | 1736 | { |
1737 | 1737 | if (_tcslen((LPTSTR)buffer)>20) |
1738 | 1738 | value=0; |
… |
… |
|
1788 | 1788 | { |
1789 | 1789 | if (!pXML->FindChildElem( _T("Server") )) |
1790 | 1790 | return FALSE; |
1791 | | |
| 1791 | |
1792 | 1792 | server.host = pXML->GetChildAttrib( _T("Host") ); |
1793 | 1793 | server.port = _ttoi(pXML->GetChildAttrib( _T("Port") )); |
1794 | 1794 | server.user = pXML->GetChildAttrib( _T("User") ); |
… |
… |
|
1849 | 1849 | return m_sConfigFile; |
1850 | 1850 | else |
1851 | 1851 | return ((CFileZillaApp *)AfxGetApp())->m_appPath + _T("FileZilla.xml"); |
1852 | | } |
1853 | | No newline at end of file |
| 1852 | } |
RCS file: /cvsroot/filezilla/FileZilla/source/Options.h,v
retrieving revision 1.65
diff -u -r1.65 Options.h
|
|
|
55 | 55 | #define OPTIONS_NUM 116 |
56 | 56 | |
57 | 57 | ///////////////////////////////////////////////////////////////////////////// |
58 | | // Dialogfeld COptions |
| 58 | // Dialogfeld COptions |
59 | 59 | class COptions : protected CSAPrefsDialog |
60 | 60 | { |
61 | 61 | // Konstruktion |
… |
… |
|
87 | 87 | static void GetKey(HKEY key, CString keyname, int &value); |
88 | 88 | |
89 | 89 | static void SetConfig(LPCTSTR pConfigFile); |
90 | | |
| 90 | |
91 | 91 | COptions(CWnd* pParent = NULL); // Standardkonstruktor |
92 | 92 | COptionsConnection m_OptionsFtpProxyPage; |
93 | 93 | COptionsConnection2 m_OptionsPage2; |
… |
… |
|
115 | 115 | |
116 | 116 | protected: |
117 | 117 | static CString GetSpeedLimitsString(SPEEDLIMITSLIST &list); |
118 | | static void FillSpeedLimitsListFromString(SPEEDLIMITSLIST &list, CString str); |
| 118 | static void FillSpeedLimitsListFromString(SPEEDLIMITSLIST &list, CString str); |
119 | 119 | static CMarkupSTL m_markup; |
120 | 120 | static void Init(); |
121 | 121 | static BOOL m_bInitialized; |
… |
… |
|
139 | 139 | static CString GetXmlFileName(); |
140 | 140 | |
141 | 141 | static CString m_sConfigFile; |
142 | | |
| 142 | |
143 | 143 | // Dialogfelddaten |
144 | 144 | //{{AFX_DATA(COptions) |
145 | 145 | enum { IDD = IDD_SAPREFS }; |
RCS file: /cvsroot/filezilla/FileZilla/source/OptionsConnection2.cpp,v
retrieving revision 1.5
diff -u -r1.5 OptionsConnection2.cpp
|
|
|
21 | 21 | #include "OptionsConnection2.h" |
22 | 22 | |
23 | 23 | ///////////////////////////////////////////////////////////////////////////// |
24 | | // Eigenschaftenseite COptionsConnection2 |
| 24 | // Eigenschaftenseite COptionsConnection2 |
25 | 25 | |
26 | 26 | IMPLEMENT_DYNCREATE(COptionsConnection2, CSAPrefsSubDlg) |
27 | 27 | |
… |
… |
|
66 | 66 | //}}AFX_MSG_MAP |
67 | 67 | END_MESSAGE_MAP() |
68 | 68 | |
69 | | void COptionsConnection2::OnCheck1() |
| 69 | void COptionsConnection2::OnCheck1() |
70 | 70 | { |
71 | 71 | UpdateData(TRUE); |
72 | 72 | m_IntervalHighCtrl.EnableWindow(m_UseKeepAlive); |
73 | 73 | m_IntervalLowCtrl.EnableWindow(m_UseKeepAlive); |
74 | 74 | } |
75 | 75 | |
76 | | BOOL COptionsConnection2::OnInitDialog() |
| 76 | BOOL COptionsConnection2::OnInitDialog() |
77 | 77 | { |
78 | 78 | CSAPrefsSubDlg::OnInitDialog(); |
79 | | |
| 79 | |
80 | 80 | m_IntervalHighCtrl.EnableWindow(m_UseKeepAlive); |
81 | | m_IntervalLowCtrl.EnableWindow(m_UseKeepAlive); |
| 81 | m_IntervalLowCtrl.EnableWindow(m_UseKeepAlive); |
82 | 82 | return TRUE; // return TRUE unless you set the focus to a control |
83 | 83 | // EXCEPTION: OCX-Eigenschaftenseiten sollten FALSE zurückgeben |
84 | 84 | } |
RCS file: /cvsroot/filezilla/FileZilla/source/OptionsConnection2.h,v
retrieving revision 1.4
diff -u -r1.4 OptionsConnection2.h
|
|
|
17 | 17 | // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
18 | 18 | |
19 | 19 | ///////////////////////////////////////////////////////////////////////////// |
20 | | // Dialogfeld COptionsConnection2 |
| 20 | // Dialogfeld COptionsConnection2 |
21 | 21 | |
22 | 22 | #pragma once |
23 | 23 | |
RCS file: /cvsroot/filezilla/FileZilla/source/resource.h,v
retrieving revision 1.116
diff -u -r1.116 resource.h
|
|
|
752 | 752 | #define AFX_IDS_SCCLOSE 0xEF06 |
753 | 753 | |
754 | 754 | // Next default values for new objects |
755 | | // |
| 755 | // |
756 | 756 | #ifdef APSTUDIO_INVOKED |
757 | 757 | #ifndef APSTUDIO_READONLY_SYMBOLS |
758 | 758 | #define _APS_3D_CONTROLS 1 |