Ticket #1480: FileZillaTrimSpaces.patch

File FileZillaTrimSpaces.patch, 203.4 KB (added by eyebex, 19 years ago)

"Trim trailing spaces only" patch

  • source/SiteManager.cpp

    RCS file: /cvsroot/filezilla/FileZilla/source/SiteManager.cpp,v
    retrieving revision 1.63
    diff -u -r1.63 SiteManager.cpp
     
    4242    CMenuTree *mt = ( CMenuTree *)lpData;
    4343
    4444    AppendMenu( ( HMENU)lpParent, MF_STRING, mt->m_CurrentItem, lpszName);
    45    
     45
    4646    if (!site)
    4747        EnableMenuItem( (HMENU)lpParent, mt->m_CurrentItem, MF_BYCOMMAND|MF_DISABLED|MF_GRAYED);
    4848
     
    104104}
    105105
    106106/////////////////////////////////////////////////////////////////////////////
    107 // Dialogfeld CSiteManager 
     107// Dialogfeld CSiteManager
    108108
    109109
    110110CSiteManager::CSiteManager(CWnd* pParent /*=NULL*/)
     
    190190END_MESSAGE_MAP()
    191191
    192192/////////////////////////////////////////////////////////////////////////////
    193 // Behandlungsroutinen für Nachrichten CSiteManager 
     193// Behandlungsroutinen für Nachrichten CSiteManager
    194194
    195195bool CSiteManager::ConnectSitePrepare(t_SiteManagerItem *site)
    196196{
     
    237237    return false;
    238238}
    239239
    240 void CSiteManager::OnOK() 
     240void CSiteManager::OnOK()
    241241{
    242242    HTREEITEM item=m_cTree.GetSelectedItem();
    243243    t_SiteManagerItem *site=0;
     
    245245        site=(t_SiteManagerItem *)m_cTree.GetItemData(item);
    246246    if (!site || site->NodeType != SITE)
    247247        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,
    251251        //we can save the data and close the dialog
    252252        //And don't forget to ask for the password first!
    253253        t_SiteManagerItem site2 = *(t_SiteManagerItem *)m_cTree.GetItemData(item);
     
    275275                GssServers=GssServers.Mid(i+1);
    276276            }
    277277        }
    278        
     278
    279279        if (!bUseGSS)
    280280        {
    281281            if (m_Logontype && (m_bPassDontSave || _ttoi(COptions::GetOption(OPTION_RUNINSECUREMODE))) )
     
    286286                site2.Pass = dlg.m_String;
    287287            }
    288288        }
    289        
     289
    290290        SaveData();
    291291        OnClose();
    292292        m_LastSite = site2;
     
    302302    {
    303303        unsigned char *buffer=new unsigned char[100];
    304304        memset(buffer,0,100);
    305    
     305
    306306        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)
    308308        {
    309309            RegCloseKey(key);
    310310            delete [] buffer;
    311311            return "";
    312312        }
    313         else 
     313        else
    314314        {
    315315            RegCloseKey(key);
    316316            CString res=(LPTSTR)buffer;
     
    328328    LPCTSTR str=value;
    329329    _tcscpy(tmp,str);
    330330    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)
    332332    {
    333333        RegSetValueEx(key,keyname,0,REG_SZ,(unsigned char *)tmp,(value.GetLength()+1)*sizeof(TCHAR));
    334334        RegCloseKey(key);
     
    336336    delete [] tmp;
    337337}
    338338
    339 BOOL CSiteManager::OnInitDialog() 
     339BOOL CSiteManager::OnInitDialog()
    340340{
    341341    CDialog::OnInitDialog();
    342    
     342
    343343    SetCtrlState();
    344344    m_DefaultSite=0;
    345345    if (!m_ImageList.GetSafeHandle())
     
    387387    }
    388388
    389389    m_cTree.Expand(item, TVE_EXPAND);
    390    
     390
    391391    if (!m_DefaultSite)
    392392        m_DefaultSite=item;
    393393    m_cTree.SelectItem(m_DefaultSite);
     
    395395    if (m_DefaultSite)
    396396        site=(t_SiteManagerItem *)m_cTree.GetItemData(m_DefaultSite);
    397397    DisplaySite(site);
    398    
     398
    399399    if (m_bAddServer)
    400400    {
    401401        CString str;
    402        
     402
    403403        str.Format(IDS_SITEMANAGER_NEWFTPSITE);
    404404        int i=2;
    405405        HTREEITEM parent=m_cTree.GetRootItem();
     
    421421
    422422        }
    423423        HTREEITEM item=m_cTree.InsertItem(str,2,2,parent,TVI_SORT);
    424                
     424
    425425        t_SiteManagerItem *site = new t_SiteManagerItem;
    426426        site->name = str;
    427427        site->Host = m_addserver.host;
     
    449449        }
    450450        else
    451451            ASSERT(FALSE);
    452         site->RemoteDir = m_addserver.path;     
     452        site->RemoteDir = m_addserver.path;
    453453        site->bFirewallBypass = m_addserver.fwbypass;
    454454        site->nTimeZoneOffset = m_addserver.nTimeZoneOffset / 60;
    455455        site->nTimeZoneOffset2 = m_addserver.nTimeZoneOffset % 60;
     
    460460        DisplaySite(site);
    461461        m_cTree.SetFocus();
    462462        m_cTree.EditLabel(item);
    463        
     463
    464464        m_bAddServer = FALSE;
    465465    }
    466    
     466
    467467    m_hcArrow = AfxGetApp()->LoadStandardCursor(IDC_ARROW);
    468468    m_hcNo = AfxGetApp()->LoadStandardCursor(IDC_NO);
    469469
    470470    if (m_FileToImport!="")
    471471        Import(m_FileToImport);
    472    
     472
    473473    return TRUE;  // return TRUE unless you set the focus to a control
    474474                  // EXCEPTION: OCX-Eigenschaftenseiten sollten FALSE zurückgeben
    475475}
    476476
    477 void CSiteManager::OnNew() 
     477void CSiteManager::OnNew()
    478478{
    479479    if (!CheckValid())
    480480        return;
     
    484484    ASSERT(m_cTree.GetItemData(parent));
    485485    if (((t_SiteManagerItem *)m_cTree.GetItemData(parent))->NodeType==SITE)
    486486        parent=m_cTree.GetParentItem(parent);
    487    
     487
    488488    ASSERT(m_cTree.GetItemData(parent) && ((t_SiteManagerItem *)m_cTree.GetItemData(parent))->NodeType==FOLDER);
    489    
     489
    490490    CString name;
    491491    name.Format(IDS_SITEMANAGER_NEWFTPSITE);
    492492
     
    498498        name2.MakeLower();
    499499        CString childstr=m_cTree.GetItemText(child);
    500500        childstr.MakeLower();
    501         if (childstr==name2)           
     501        if (childstr==name2)
    502502        {
    503503            child=m_cTree.GetChildItem(parent);
    504504            name.Format(IDS_SITEMANAGER_NEWFTPSITEWITHNUM,i);
     
    507507        }
    508508        child=m_cTree.GetNextItem(child,TVGN_NEXT);
    509509    }
    510    
     510
    511511    HTREEITEM item=m_cTree.InsertItem(name,2,2,parent,TVI_SORT);
    512512    m_cTree.Expand(parent, TVE_EXPAND);
    513513    t_SiteManagerItem *site=new t_SiteManagerItem;
     
    532532
    533533    m_cTree.SelectItem(item);
    534534    DisplaySite(site);
    535     m_cTree.EditLabel(item);   
     535    m_cTree.EditLabel(item);
    536536}
    537537
    538538/*
     
    558558    {
    559559        CString str;
    560560        CString str2;
    561        
     561
    562562        if (m_Host=="")
    563563        {
    564564            m_cTree.SelectItem(olditem);
     
    598598                m_UserCtrl.SetFocus();
    599599                return FALSE;
    600600            }
    601    
     601
    602602        /*  if (m_Pass=="")
    603603            {
    604604                m_cTree.SelectItem(olditem);
     
    610610        if (m_cServerType.GetCurSel()==CB_ERR)
    611611            m_cServerType.SetCurSel(0);
    612612        UpdateData(FALSE);
    613            
     613
    614614        t_SiteManagerItem *site=(t_SiteManagerItem*)m_cTree.GetItemData(olditem);
    615615        ASSERT(site);
    616616        site->Host=m_Host;
     
    623623        }
    624624        site->bFirewallBypass=m_bFwBypass;
    625625        site->bPassDontSave=m_bPassDontSave;
    626         if (m_bPassDontSave) 
     626        if (m_bPassDontSave)
    627627            site->Pass=""; //Ensure that the pass doesn't get saved
    628628        site->nServerType=m_cServerType.GetCurSel();
    629629        CWnd *pComments = GetDlgItem(IDC_SITEMANAGER_COMMENTS);
     
    631631            pComments->GetWindowText(site->Comments);
    632632
    633633        if (!m_nDefault)
    634             m_DefaultSite=olditem;     
     634            m_DefaultSite=olditem;
    635635    }
    636     return TRUE;   
     636    return TRUE;
    637637}
    638638
    639639t_SiteManagerItem *CSiteManager::GetData(HKEY hRootKey, CString Name)
     
    726726        m_ConnectCtrl.EnableWindow(TRUE);
    727727        m_FwBypassCtrl.EnableWindow(TRUE);
    728728        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)));
    731731        m_cDefault.EnableWindow(TRUE);
    732732        m_cPassDontSave.EnableWindow((m_Logontype && !_ttoi(COptions::GetOption(OPTION_RUNINSECUREMODE)))?TRUE:FALSE);
    733733        m_cServerType.EnableWindow(TRUE);
     
    747747        {
    748748            m_DeleteCtrl.EnableWindow(FALSE);
    749749            GetDlgItem(IDC_SITEMANAGER_RENAME)->EnableWindow(FALSE);
    750        
     750
    751751        }
    752752        m_HostCtrl.EnableWindow(FALSE);
    753753        m_PortCtrl.EnableWindow(FALSE);
     
    767767    }
    768768}
    769769
    770 void CSiteManager::OnDelete() 
     770void CSiteManager::OnDelete()
    771771{
    772772    HTREEITEM item=m_cTree.GetSelectedItem();
    773773    if (!item)
     
    783783    }
    784784    path.TrimRight( _T("\\") );
    785785    m_KeysToDelete.push_back(path);
    786    
     786
    787787    item=m_cTree.GetSelectedItem();
    788788    while(item!=parent)
    789789    {
     
    799799        if (m_DefaultSite==item)
    800800            m_DefaultSite=m_cTree.GetRootItem();
    801801        m_cTree.DeleteItem(item);
    802         item=parent;       
     802        item=parent;
    803803    }
    804804    m_cTree.SelectItem(parent);
    805805}
     
    858858        pMarkup->AddChildElem( _T("Sites") );
    859859
    860860    pMarkup->IntoElem();
    861    
     861
    862862    //Only delete the old items that have been renamed or removed
    863863    //Don't delete complete sitemanager key so that crashes while saving would not be fatal
    864864    pMarkup->SavePos( _T("PREDELETE") );
     
    872872                current+="\\"+pMarkup->GetChildAttrib( _T("Name") );
    873873            else
    874874                current=pMarkup->GetChildAttrib( _T("Name") );
    875            
     875
    876876            if (m_KeysToDelete.empty())
    877877                break;
    878            
     878
    879879            std::list<CString>::iterator iter;
    880880            for (iter=m_KeysToDelete.begin(); iter!=m_KeysToDelete.end(); iter++)
    881881                if (*iter==current)
     
    886886                }
    887887            if (m_KeysToDelete.empty())
    888888                break;
    889            
     889
    890890            if (iter==m_KeysToDelete.end())
    891891                pMarkup->IntoElem();
    892892            else
     
    897897                else
    898898                    current=current.Left(pos);
    899899            }
    900            
     900
    901901            res=pMarkup->FindChildElem();
    902902            while (!res && current!="")
    903903            {
     
    926926                }
    927927            if (m_KeysToDelete.empty())
    928928                break;
    929            
     929
    930930            res=pMarkup->FindChildElem();
    931931            while (!res && current!="")
    932932            {
     
    939939                res=pMarkup->FindChildElem();
    940940            }
    941941        }
    942        
     942
    943943    }
    944944    VERIFY(pMarkup->RestorePos( _T("PREDELETE") ));
    945945
     
    986986            }
    987987
    988988            pMarkup->IntoElem();
    989    
     989
    990990            if (path!="")
    991991                path+="/"+m_cTree.GetItemText(item);
    992992            else
    993993                path=m_cTree.GetItemText(item);
    994994            continue;
    995995        }
    996        
     996
    997997        HTREEITEM parent=m_cTree.GetParentItem(item);
    998998        pSite = reinterpret_cast<t_SiteManagerItem *>(m_cTree.GetItemData(item));
    999999        if (pSite)
     
    10101010    }
    10111011}
    10121012
    1013 void CSiteManager::OnCancel() 
     1013void CSiteManager::OnCancel()
    10141014{
    10151015    m_cTree.SetRedraw(FALSE);
    10161016    HTREEITEM item=m_cTree.GetChildItem(TVI_ROOT);
     
    10261026            delete site;
    10271027        HTREEITEM parent=m_cTree.GetParentItem(item);
    10281028        m_cTree.DeleteItem(item);
    1029         item=parent;       
     1029        item=parent;
    10301030    }
    10311031    m_cTree.SetRedraw(TRUE);
    10321032    CDialog::OnCancel();
    10331033}
    10341034
    1035 void CSiteManager::OnRadio() 
     1035void CSiteManager::OnRadio()
    10361036{
    10371037    UpdateData(TRUE);
    10381038    if (!m_Logontype)
     
    10561056    SetCtrlState();
    10571057}
    10581058
    1059 void CSiteManager::OnExit() 
     1059void CSiteManager::OnExit()
    10601060{
    10611061    m_cTree.SetRedraw(FALSE);
    10621062    if (CheckValid())
     
    10681068    m_cTree.SetRedraw(TRUE);
    10691069}
    10701070
    1071 void CSiteManager::OnKillfocusHost() 
     1071void CSiteManager::OnKillfocusHost()
    10721072{
    10731073    UpdateData(TRUE);
    10741074    t_SiteManagerItem *data=(t_SiteManagerItem *)m_cTree.GetItemData(m_cTree.GetSelectedItem());
     
    11311131        {
    11321132            return;
    11331133        }
    1134        
    1135        
     1134
     1135
    11361136    }
    11371137    pos=m_Host.ReverseFind('@');
    11381138    if (pos!=-1)
     
    11451145        }
    11461146        m_Host=m_Host.Right(m_Host.GetLength()-pos-1);
    11471147        m_User=tmp.Left(pos2);
    1148         m_Pass=tmp.Right(tmp.GetLength()-pos2-1);   
     1148        m_Pass=tmp.Right(tmp.GetLength()-pos2-1);
    11491149        m_Logontype=1;
    11501150        SetCtrlState();
    11511151    }
     
    11591159    UpdateData(FALSE);
    11601160}
    11611161
    1162 void CSiteManager::OnSitemanagerSaveexit() 
     1162void CSiteManager::OnSitemanagerSaveexit()
    11631163{
    1164     OnExit();   
     1164    OnExit();
    11651165}
    11661166
    11671167BOOL ReadString(CArchive &ar,CString &str)
     
    11761176    return TRUE;
    11771177}
    11781178
    1179 void CSiteManager::OnSitemanagerFileImport() 
     1179void CSiteManager::OnSitemanagerFileImport()
    11801180{
    11811181    if (!CheckValid())
    1182         return; 
     1182        return;
    11831183    CString str;
    11841184    str.LoadString(IDS_SITEMANAGER_XMLFILES);
    11851185    CFileDialog dlg(TRUE, _T("xml"), _T("FTP Sites"), OFN_FILEMUSTEXIST, str);
     
    11891189    }
    11901190}
    11911191
    1192 void CSiteManager::OnSitemanagerFileExportAsurllist() 
     1192void CSiteManager::OnSitemanagerFileExportAsurllist()
    11931193{
    11941194    if (!CheckValid())
    11951195        return;
    11961196
    11971197    USES_CONVERSION;
    1198    
     1198
    11991199    CString str;
    12001200    str.LoadString(IDS_SITEMANAGER_TEXTFILES);
    12011201    CFileDialog dlg(FALSE, _T("txt"), _T("FTP Sites"), OFN_OVERWRITEPROMPT, str);
     
    12451245    }
    12461246}
    12471247
    1248 void CSiteManager::OnSitemanagerFileExportWithalldetails() 
     1248void CSiteManager::OnSitemanagerFileExportWithalldetails()
    12491249{
    12501250    USES_CONVERSION;
    1251    
     1251
    12521252    if (!CheckValid())
    1253         return; 
     1253        return;
    12541254    CString str;
    12551255    str.LoadString(IDS_SITEMANAGER_XMLFILES);
    12561256    CFileDialog dlg(FALSE, _T("xml"), _T("FTP Sites"), OFN_OVERWRITEPROMPT, str);
     
    12851285            else
    12861286            {
    12871287                markup.AddChildElem(  _T("Folder") );
    1288                 markup.AddChildAttrib( _T("Name"), m_cTree.GetItemText(item)); 
     1288                markup.AddChildAttrib( _T("Name"), m_cTree.GetItemText(item));
    12891289            }
    12901290
    12911291            HTREEITEM item2=m_cTree.GetNextSiblingItem(item);
     
    13471347        if (str=="")
    13481348            continue;
    13491349        int pos;
    1350            
     1350
    13511351        if ((pos=str.Find( _T(": ") ))!=-1)
    13521352        { //Server list with details
    13531353            t_SiteManagerItem *pSite = new t_SiteManagerItem;
     
    13551355            pSite->nPort = 21;
    13561356            pSite->nLogonType = -1;
    13571357            CString folder;
    1358            
     1358
    13591359            do
    13601360            {
    13611361                if (str=="")
     
    14771477                name2.MakeLower();
    14781478                CString childstr=m_cTree.GetItemText(child);
    14791479                childstr.MakeLower();
    1480                 if (childstr==name2)           
     1480                if (childstr==name2)
    14811481                {
    14821482                    child=m_cTree.GetChildItem(hParent);
    14831483                    newname.Format(_T("%s (%d)"), pSite->name, i);
     
    14991499            pSite->nPort=0;
    15001500            pSite->bFirewallBypass=0;
    15011501            pSite->bPassDontSave=0;
    1502            
     1502
    15031503            pos=str.Find('/');
    15041504            if (pos!=-1)
    15051505            {
     
    15321532            {
    15331533                pSite->nPort=_ttoi(str.Mid(pos+1));
    15341534                str=str.Left(pos);
    1535                
     1535
    15361536            }
    15371537
    15381538            if (!pSite->nPort)
     
    15551555                name2.MakeLower();
    15561556                CString childstr=m_cTree.GetItemText(child);
    15571557                childstr.MakeLower();
    1558                 if (childstr==name2)           
     1558                if (childstr==name2)
    15591559                {
    15601560                    child=m_cTree.GetChildItem(hParent);
    15611561                    newname.Format(_T("%s (%d)"), pSite->name, i);
     
    15941594                name2.MakeLower();
    15951595                CString childstr=m_cTree.GetItemText(child);
    15961596                childstr.MakeLower();
    1597                 if (childstr==name2)           
     1597                if (childstr==name2)
    15981598                    break;
    15991599                child=m_cTree.GetNextSiblingItem(child);
    16001600            }
     
    16311631                    name2.MakeLower();
    16321632                    CString childstr=m_cTree.GetItemText(child);
    16331633                    childstr.MakeLower();
    1634                     if (childstr==name2)           
     1634                    if (childstr==name2)
    16351635                    {
    16361636                        child=m_cTree.GetChildItem(parent);
    16371637                        newname.Format(_T("%s (%d)"), name, i);
     
    16661666    return DoModal();
    16671667}
    16681668
    1669 void CSiteManager::OnClose() 
     1669void CSiteManager::OnClose()
    16701670{
    16711671    HTREEITEM item=m_cTree.GetChildItem(TVI_ROOT);
    16721672    while(item)
     
    16811681            delete site;
    16821682        HTREEITEM parent=m_cTree.GetParentItem(item);
    16831683        m_cTree.DeleteItem(item);
    1684         item=parent;       
     1684        item=parent;
    16851685    }
    16861686    CDialog::OnClose();
    16871687}
     
    17411741    pMarkup->AddChildAttrib( _T("UTF8"), site->nUTF8);
    17421742}
    17431743
    1744 void CSiteManager::OnPassdontsave() 
     1744void CSiteManager::OnPassdontsave()
    17451745{
    17461746    UpdateData(TRUE);
    1747     m_PassCtrl.EnableWindow(!m_bPassDontSave);         
     1747    m_PassCtrl.EnableWindow(!m_bPassDontSave);
    17481748    m_Pass="";
    17491749    UpdateData(FALSE);
    17501750}
     
    17581758//             Registry key are children.
    17591759//
    17601760void 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,
    17621762                            BUILDSITETREEPROC_AFTER AfterProc)
    17631763{
    17641764    substring.TrimLeft( _T("\\") );
     
    17711771            return;
    17721772        hRootKey = HKEY_LOCAL_MACHINE;
    17731773    }
    1774    
     1774
    17751775    TCHAR buffer[1000];
    17761776    int index=0;
    17771777    unsigned char value[1000];
     
    18641864    }
    18651865}
    18661866
    1867 void CSiteManager::OnSelchangingSitemanagertree(NMHDR* pNMHDR, LRESULT* pResult) 
     1867void CSiteManager::OnSelchangingSitemanagertree(NMHDR* pNMHDR, LRESULT* pResult)
    18681868{
    18691869    NM_TREEVIEW* pNMTreeView = (NM_TREEVIEW*)pNMHDR;
    18701870    if (!CheckValid())
     
    18771877    *pResult = 0;
    18781878}
    18791879
    1880 void CSiteManager::OnSelchangedSitemanagertree(NMHDR* pNMHDR, LRESULT* pResult) 
     1880void CSiteManager::OnSelchangedSitemanagertree(NMHDR* pNMHDR, LRESULT* pResult)
    18811881{
    18821882    NM_TREEVIEW* pNMTreeView = (NM_TREEVIEW*)pNMHDR;
    18831883    t_SiteManagerItem *pSiteManagerItem = (t_SiteManagerItem *)pNMTreeView->itemNew.lParam;
     
    19371937    SetCtrlState();
    19381938}
    19391939
    1940 void CSiteManager::OnItemexpandedSitemanagertree(NMHDR* pNMHDR, LRESULT* pResult) 
     1940void CSiteManager::OnItemexpandedSitemanagertree(NMHDR* pNMHDR, LRESULT* pResult)
    19411941{
    19421942    NM_TREEVIEW* pNMTreeView = (NM_TREEVIEW*)pNMHDR;
    1943    
     1943
    19441944    int image=(pNMTreeView->itemNew.state&TVIS_EXPANDED)?1:0;
    19451945    m_cTree.SetItemImage(pNMTreeView->itemNew.hItem,image,image);
    19461946    *pResult = 0;
    19471947}
    19481948
    1949 BOOL CSiteManager::PreTranslateMessage(MSG* pMsg) 
     1949BOOL CSiteManager::PreTranslateMessage(MSG* pMsg)
    19501950{
    19511951    if (pMsg->message==WM_KEYDOWN)
    19521952    {
     
    19831983            }
    19841984        }
    19851985    }
    1986    
     1986
    19871987    return CDialog::PreTranslateMessage(pMsg);
    19881988}
    19891989
    1990 void CSiteManager::OnDblclkSitemanagertree(NMHDR* pNMHDR, LRESULT* pResult) 
     1990void CSiteManager::OnDblclkSitemanagertree(NMHDR* pNMHDR, LRESULT* pResult)
    19911991{
    19921992    *pResult = 0;
    19931993    HTREEITEM item=m_cTree.GetSelectedItem();
     
    19981998    if (site->NodeType != SITE)
    19991999        return;
    20002000    *pResult = TRUE;
    2001     OnOK(); 
     2001    OnOK();
    20022002}
    20032003
    20042004DWORD CSiteManager::RegDeleteKeyEx(CString subkey)
     
    20222022    return retval;
    20232023}
    20242024
    2025 void CSiteManager::OnEndlabeleditSitemanagertree(NMHDR* pNMHDR, LRESULT* pResult) 
     2025void CSiteManager::OnEndlabeleditSitemanagertree(NMHDR* pNMHDR, LRESULT* pResult)
    20262026{
    20272027    TV_DISPINFO* pTVDispInfo = (TV_DISPINFO*)pNMHDR;
    20282028    if (!pTVDispInfo->item.pszText)
     
    20952095    *pResult = TRUE;
    20962096}
    20972097
    2098 void CSiteManager::OnSitemanagerNewfolder() 
     2098void CSiteManager::OnSitemanagerNewfolder()
    20992099{
    21002100    if (!CheckValid())
    21012101        return;
     
    21042104        parent=m_cTree.GetRootItem();
    21052105    if (((t_SiteManagerItem *)m_cTree.GetItemData(parent))->NodeType == SITE)
    21062106        parent=m_cTree.GetParentItem(parent);
    2107    
     2107
    21082108    CString name;
    21092109    name.Format(IDS_SITEMANAGER_NEWFOLDER);
    21102110
     
    21162116        name2.MakeLower();
    21172117        CString childstr=m_cTree.GetItemText(child);
    21182118        childstr.MakeLower();
    2119         if (childstr==name2)           
     2119        if (childstr==name2)
    21202120        {
    21212121            child=m_cTree.GetChildItem(parent);
    21222122            name.Format(IDS_SITEMANAGER_NEWFOLDERWITHNUM,i);
     
    21252125        }
    21262126        child=m_cTree.GetNextItem(child,TVGN_NEXT);
    21272127    }
    2128    
     2128
    21292129    HTREEITEM item=m_cTree.InsertItem(name,0,0,parent,TVI_SORT);
    21302130    t_SiteManagerItem *pFolder = new t_SiteManagerItem;
    21312131    pFolder->name=name;
     
    21432143
    21442144    m_cTree.Expand(parent,TVE_EXPAND);m_cTree.SelectItem(item);
    21452145    DisplaySite(0);
    2146     m_cTree.EditLabel(item);   
     2146    m_cTree.EditLabel(item);
    21472147}
    21482148
    21492149t_SiteManagerItem * CSiteManager::GetDefaultSite(CString substring)
     
    21592159                pMarkup->IntoElem();
    21602160                t_SiteManagerItem *pSite = GetDefaultSiteXML(pMarkup);
    21612161                COptions::UnlockXML();
    2162                 return pSite;   
     2162                return pSite;
    21632163            }
    21642164            COptions::UnlockXML();
    21652165        }
    21662166    }
    2167    
     2167
    21682168    HKEY key;
    21692169    HKEY hRootKey = HKEY_CURRENT_USER;
    21702170    if (RegOpenKey(HKEY_CURRENT_USER, "Software\\FileZilla\\Site Manager\\" + substring, &key) != ERROR_SUCCESS)
     
    21962196                return site;
    21972197            index++;
    21982198            length=1000;
    2199         }   
     2199        }
    22002200    }
    22012201    else
    22022202    {
     
    22052205        {
    22062206            if (GetKey(hRootKey, substring,"Default Site")=="1")
    22072207                return site;
    2208             else 
     2208            else
    22092209                delete site;
    22102210        }
    22112211        index++;
    22122212        length=1000;
    22132213    }
    22142214    RegCloseKey(key);
    2215    
     2215
    22162216    return 0;
    22172217}
    22182218
     
    22442244    return 0;
    22452245}
    22462246
    2247 void CSiteManager::OnBegindragSitemanagertree(NMHDR* pNMHDR, LRESULT* pResult) 
     2247void CSiteManager::OnBegindragSitemanagertree(NMHDR* pNMHDR, LRESULT* pResult)
    22482248{
    22492249    NM_TREEVIEW* pNMTreeView = (NM_TREEVIEW*)pNMHDR;
    22502250    // TODO: Code für die Behandlungsroutine der Steuerelement-Benachrichtigung hier einfügen
     
    22612261        return;
    22622262
    22632263    m_cTree.EnsureVisible(pNMTreeView->itemNew.hItem);
    2264    
     2264
    22652265
    22662266    m_pDragImage=m_cTree.CreateDragImage(pNMTreeView->itemNew.hItem);
    22672267    if (m_pDragImage == NULL)
     
    22702270    }
    22712271    m_hDragItem=pNMTreeView->itemNew.hItem;
    22722272
    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;
    22762276    pt2.Offset(rect.left, rect.top);
    22772277    m_pDragImage->BeginDrag(0, CPoint(0,0));
    2278     m_pDragImage->DragEnter(0, pt2); 
     2278    m_pDragImage->DragEnter(0, pt2);
    22792279
    22802280    SetCapture();
    22812281}
    22822282
    2283 void CSiteManager::OnMouseMove(UINT nFlags, CPoint point) 
    2284 {   
     2283void CSiteManager::OnMouseMove(UINT nFlags, CPoint point)
     2284{
    22852285    if (m_pDragImage) // In Drag&Drop mode ?
    22862286    {
    22872287        CPoint ptDropPoint(point);
     
    22892289        CWnd* pDropWnd = CWnd::WindowFromPoint(ptDropPoint);
    22902290
    22912291        m_pDragImage->DragMove(ptDropPoint);
    2292        
     2292
    22932293        //Scroll through tree
    22942294        RECT rect;
    22952295        m_cTree.GetWindowRect(&rect);
     
    23002300            {
    23012301                if (!m_nDragScrollTimerID)
    23022302                {
    2303                    
     2303
    23042304                    HTREEITEM hItem=m_cTree.GetFirstVisibleItem();
    23052305                    if (hItem)
    23062306                        hItem=m_cTree.GetNextItem(hItem, TVGN_PREVIOUSVISIBLE);
     
    23212321                    HTREEITEM hItem=m_cTree.GetFirstVisibleItem();
    23222322                    while(hItem)
    23232323                    {
    2324                        
     2324
    23252325                        RECT iRect;
    23262326                        m_cTree.GetItemRect(hItem, &iRect, TRUE);
    23272327                        if (iRect.bottom>=(rect.bottom-rect.top))
     
    23532353        if (hItem!=m_hDropItem)
    23542354        {
    23552355            m_pDragImage->DragShowNolock(FALSE);
    2356             m_cTree.SelectDropTarget(hItem); 
     2356            m_cTree.SelectDropTarget(hItem);
    23572357            m_pDragImage->DragShowNolock(TRUE);
    23582358            m_hDropItem=hItem;
    23592359        }
     
    23882388                    if (str==dragstr)
    23892389                        bError=TRUE;
    23902390                    else
    2391                         hChild=m_cTree.GetNextItem(hChild, TVGN_NEXT);             
     2391                        hChild=m_cTree.GetNextItem(hChild, TVGN_NEXT);
    23922392                }
    23932393                else
    2394                     hChild=m_cTree.GetNextItem(hChild, TVGN_NEXT);             
     2394                    hChild=m_cTree.GetNextItem(hChild, TVGN_NEXT);
    23952395            }
    23962396        }
    23972397
     
    23992399
    24002400        return;
    24012401    }
    2402        
     2402
    24032403    CDialog::OnMouseMove(nFlags, point);
    24042404}
    24052405
    2406 void CSiteManager::OnLButtonUp(UINT nFlags, CPoint point) 
     2406void CSiteManager::OnLButtonUp(UINT nFlags, CPoint point)
    24072407{
    24082408    if (m_pDragImage) // In Drag&Drop mode ?
    24092409    {
     
    24222422        ClientToScreen(&pt);
    24232423        CWnd* m_pDropWnd = WindowFromPoint(pt);
    24242424
    2425         if (m_pDropWnd == &m_cTree) 
     2425        if (m_pDropWnd == &m_cTree)
    24262426        {
    24272427            BOOL nError=0;
    24282428            if (hDropItem==m_hDragItem || m_cTree.GetParentItem(m_hDragItem)==hDropItem)
     
    24742474                }
    24752475                path+=m_cTree.GetItemText(m_hDragItem);
    24762476                m_KeysToDelete.push_back(path);
    2477                
     2477
    24782478                HTREEITEM hDragTemp=m_hDragItem;
    24792479                HTREEITEM hDropTemp=hDropItem;
    24802480                TCHAR str[1000];
     
    25842584                m_pDragImage->DragShowNolock(FALSE);
    25852585                m_cTree.EnsureVisible(hItem);
    25862586                m_cTree.RedrawWindow();
    2587                 m_pDragImage->DragShowNolock(TRUE);             
     2587                m_pDragImage->DragShowNolock(TRUE);
    25882588            }
    25892589        }
    25902590        else if (m_CurPos.y>(rect.bottom-5))
     
    26142614        if (hItem!=m_hDropItem)
    26152615        {
    26162616            m_pDragImage->DragShowNolock(FALSE);
    2617             m_cTree.SelectDropTarget(hItem); 
     2617            m_cTree.SelectDropTarget(hItem);
    26182618            m_pDragImage->DragShowNolock(TRUE);
    26192619            m_hDropItem=hItem;
    26202620        }
    26212621    }
    26222622}
    26232623
    2624 void CSiteManager::OnSelchangeServertype() 
     2624void CSiteManager::OnSelchangeServertype()
    26252625{
    26262626    UpdateData();
    26272627
     
    26632663    }
    26642664}
    26652665
    2666 void CSiteManager::OnSitemanagerAdvanced() 
     2666void CSiteManager::OnSitemanagerAdvanced()
    26672667{
    26682668    HTREEITEM item = m_cTree.GetSelectedItem();
    26692669    if (!item)
    26702670        return;
    2671    
     2671
    26722672    t_SiteManagerItem *site = (t_SiteManagerItem *)m_cTree.GetItemData(item);
    26732673    if (!site || site->NodeType != SITE)
    26742674        return;
    26752675
    26762676    CSiteManagerAdvancedDlg dlg(site);
    2677    
     2677
    26782678    dlg.DoModal();
    26792679}
    26802680
     
    26892689    nUTF8 = 0;
    26902690}
    26912691
    2692 void CSiteManager::OnSitemanagerCopy() 
     2692void CSiteManager::OnSitemanagerCopy()
    26932693{
    26942694    if (!CheckValid())
    26952695        return;
     
    27042704    ASSERT(m_cTree.GetItemData(parent));
    27052705    if (((t_SiteManagerItem *)m_cTree.GetItemData(parent))->NodeType==SITE)
    27062706        return;
    2707    
     2707
    27082708    ASSERT(m_cTree.GetItemData(parent) && ((t_SiteManagerItem *)m_cTree.GetItemData(parent))->NodeType==FOLDER);
    2709    
     2709
    27102710    CString name = m_cTree.GetItemText(from);
    27112711
    27122712    HTREEITEM child=m_cTree.GetChildItem(parent);
     
    27172717        name2.MakeLower();
    27182718        CString childstr=m_cTree.GetItemText(child);
    27192719        childstr.MakeLower();
    2720         if (childstr==name2)           
     2720        if (childstr==name2)
    27212721        {
    27222722            child=m_cTree.GetChildItem(parent);
    27232723            name.Format(m_cTree.GetItemText(from) + _T(" %d"), i);
     
    27262726        }
    27272727        child=m_cTree.GetNextItem(child,TVGN_NEXT);
    27282728    }
    2729    
     2729
    27302730    HTREEITEM item=m_cTree.InsertItem(name, 2, 2, parent, TVI_SORT);
    27312731    m_cTree.Expand(parent, TVE_EXPAND);
    27322732    t_SiteManagerItem *site=new t_SiteManagerItem;
     
    27452745
    27462746    m_cTree.SelectItem(item);
    27472747    DisplaySite(site);
    2748     m_cTree.EditLabel(item);   
     2748    m_cTree.EditLabel(item);
    27492749}
    27502750
    2751 void CSiteManager::OnSitemanagerRename() 
     2751void CSiteManager::OnSitemanagerRename()
    27522752{
    27532753    HTREEITEM item=m_cTree.GetSelectedItem();
    27542754    if (!item)
     
    27772777            pMarkup->IntoElem();
    27782778            t_SiteManagerItem *pSite = GetSiteByNameXML(pMarkup, name);
    27792779            COptions::UnlockXML();
    2780             return pSite;   
     2780            return pSite;
    27812781        }
    27822782        COptions::UnlockXML();
    27832783    }
     
    28272827    };
    28282828
    28292829    return GetDataXML(pMarkup);
    2830 }
    2831  No newline at end of file
     2830}
  • source/FileZilla.rc

    RCS file: /cvsroot/filezilla/FileZilla/source/FileZilla.rc,v
    retrieving revision 1.204
    diff -u -r1.204 FileZilla.rc
     
    5252    LTEXT           "&Host:",IDC_STATIC,148,52,18,8
    5353    EDITTEXT        IDC_MANUALTRANSFER_HOST,148,61,127,14,ES_AUTOHSCROLL
    5454    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 |
    5656                    ES_NUMBER
    5757    LTEXT           "&Servertype:",IDC_STATIC,148,80,37,8
    5858    COMBOBOX        IDC_MANUALTRANSFER_SERVERTYPE,148,90,157,49,
     
    6868    LTEXT           "Us&er:",IDC_STATIC,148,149,18,8
    6969    EDITTEXT        IDC_MANUALTRANSFER_USER,148,158,157,14,ES_AUTOHSCROLL
    7070    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 |
    7272                    ES_AUTOHSCROLL
    7373    DEFPUSHBUTTON   "OK",IDOK,15,191,50,14
    7474    PUSHBUTTON      "Cancel",IDCANCEL,75,191,50,14
     
    7777END
    7878
    7979IDD_ABOUTBOX DIALOGEX 0, 0, 235, 82
    80 STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | 
     80STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION |
    8181    WS_SYSMENU
    8282CAPTION "About FileZilla"
    8383FONT 8, "MS Shell Dlg", 0, 0, 0x0
     
    9191                    IDC_HOMEPAGE,82,54,146,8
    9292    LTEXT           "Tim Kosse",IDC_MAIL,82,40,34,8
    9393    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
    9595                    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
    9797                    WS_VISIBLE
    9898    CONTROL         "",IDC_DONATE,"Static",SS_BITMAP,182,28,15,13
    9999END
     
    138138    CONTROL         "&Skip",IDC_FILEEXISTS_SKIP,"Button",BS_AUTORADIOBUTTON,
    139139                    172,62,30,10
    140140    CONTROL         "Always use this action when a file already exists",
    141                     IDC_FILEEXISTS_ALWAYS,"Button",BS_AUTOCHECKBOX | 
     141                    IDC_FILEEXISTS_ALWAYS,"Button",BS_AUTOCHECKBOX |
    142142                    BS_VCENTER | BS_MULTILINE | WS_GROUP | WS_TABSTOP,170,83,
    143143                    82,30
    144144    DEFPUSHBUTTON   "OK",IDOK,105,103,50,14
     
    152152FONT 8, "MS Shell Dlg", 0, 0, 0x0
    153153BEGIN
    154154    CONTROL         "&Limit local ports used by FileZilla",
    155                     IDC_OPTIONS_FIREWALL_LIMITPORTS,"Button",BS_AUTOCHECKBOX | 
     155                    IDC_OPTIONS_FIREWALL_LIMITPORTS,"Button",BS_AUTOCHECKBOX |
    156156                    WS_TABSTOP,7,7,116,10
    157157    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.",
    158158                    IDC_STATIC,19,17,260,24
     
    227227BEGIN
    228228    LTEXT           "Please select the language, FileZilla should use:",
    229229                    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 |
    231231                    WS_VSCROLL | WS_TABSTOP
    232232END
    233233
     
    243243                    13,29,137,10
    244244    EDITTEXT        IDC_DEFAULTFOLDER,24,41,160,14,ES_AUTOHSCROLL | WS_GROUP
    245245    CONTROL         "&Open Sitemanager each time FileZilla starts",
    246                     IDC_SITEMANAGERONSTART,"Button",BS_AUTOCHECKBOX | 
     246                    IDC_SITEMANAGERONSTART,"Button",BS_AUTOCHECKBOX |
    247247                    WS_TABSTOP,13,77,151,10
    248248    CONTROL         "Sort &folders first in Sitemanager",
    249                     IDC_SITEMANAGERSORTFOLDERSFIRST,"Button",BS_AUTOCHECKBOX | 
     249                    IDC_SITEMANAGERSORTFOLDERSFIRST,"Button",BS_AUTOCHECKBOX |
    250250                    WS_TABSTOP,13,89,113,10
    251251    CONTROL         "Don't &expand folders by default",
    252                     IDC_SITEMANAGEREXPANDFOLDERS,"Button",BS_AUTOCHECKBOX | 
     252                    IDC_SITEMANAGEREXPANDFOLDERS,"Button",BS_AUTOCHECKBOX |
    253253                    WS_TABSTOP,13,101,113,10
    254254    GROUPBOX        "Sitemanager Options",IDC_STATIC,7,66,272,49
    255255END
     
    284284END
    285285
    286286IDD_CHMOD DIALOGEX 0, 0, 199, 186
    287 STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | 
     287STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION |
    288288    WS_SYSMENU
    289289CAPTION "Change File Attributes"
    290290FONT 8, "MS Shell Dlg", 0, 0, 0x0
    291291BEGIN
    292292    LTEXT           "Text",IDC_TEXT,7,7,185,19
    293293    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 |
    295295                    WS_TABSTOP,19,38,33,10
    296     CONTROL         "&Write",IDC_OWNERWRITE,"Button",BS_AUTO3STATE | 
     296    CONTROL         "&Write",IDC_OWNERWRITE,"Button",BS_AUTO3STATE |
    297297                    WS_TABSTOP,78,38,33,10
    298     CONTROL         "&Execute",IDC_OWNEREXECUTE,"Button",BS_AUTO3STATE | 
     298    CONTROL         "&Execute",IDC_OWNEREXECUTE,"Button",BS_AUTO3STATE |
    299299                    WS_TABSTOP,137,38,42,10
    300300    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 |
    302302                    WS_TABSTOP,19,69,33,10
    303     CONTROL         "W&rite",IDC_GROUPWRITE,"Button",BS_AUTO3STATE | 
     303    CONTROL         "W&rite",IDC_GROUPWRITE,"Button",BS_AUTO3STATE |
    304304                    WS_TABSTOP,78,69,33,10
    305     CONTROL         "E&xecute",IDC_GROUPEXECUTE,"Button",BS_AUTO3STATE | 
     305    CONTROL         "E&xecute",IDC_GROUPEXECUTE,"Button",BS_AUTO3STATE |
    306306                    WS_TABSTOP,137,69,42,10
    307307    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 |
    309309                    WS_TABSTOP,19,100,33,10
    310     CONTROL         "Wr&ite",IDC_PUBLICWRITE,"Button",BS_AUTO3STATE | 
     310    CONTROL         "Wr&ite",IDC_PUBLICWRITE,"Button",BS_AUTO3STATE |
    311311                    WS_TABSTOP,78,100,33,10
    312     CONTROL         "Exec&ute",IDC_PUBLICEXECUTE,"Button",BS_AUTO3STATE | 
     312    CONTROL         "Exec&ute",IDC_PUBLICEXECUTE,"Button",BS_AUTO3STATE |
    313313                    WS_TABSTOP,137,100,42,10
    314314    LTEXT           "Please note that not all servers understand this command. This command is mostly used by UNIX servers.",
    315315                    IDC_STATIC,7,144,185,20
     
    332332    EDITTEXT        IDC_USER,95,28,56,14,ES_AUTOHSCROLL
    333333    LTEXT           "&Password:",IDC_STATIC,57,52,34,8
    334334    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 |
    336336                    WS_TABSTOP,75,70,57,10
    337337    DEFPUSHBUTTON   "&OK",IDOK,46,85,50,14
    338338    PUSHBUTTON      "&Cancel",IDCANCEL,112,85,50,14
     
    343343FONT 8, "MS Shell Dlg"
    344344BEGIN
    345345    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 |
    347347                    WS_GROUP,16,20,53,10
    348348    CONTROL         "A&SCII",IDC_TYPEMODE2,"Button",BS_AUTORADIOBUTTON,16,30,
    349349                    34,10
     
    354354    GROUPBOX        "ASCII files",IDC_STATIC,7,61,272,140,WS_GROUP
    355355    LTEXT           "If you have chosen autodetect, FileZilla will use ASCII transfer for the following file types:",
    356356                    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 |
    358358                    WS_VSCROLL | WS_TABSTOP
    359359    EDITTEXT        IDC_TYPENAME,112,98,49,14,ES_AUTOHSCROLL
    360360    PUSHBUTTON      "&Add",IDC_TYPEADD,111,117,50,14
     
    370370FONT 8, "MS Shell Dlg"
    371371BEGIN
    372372    CONTROL         "Tree1",IDC_SITEMANAGERTREE,"SysTreeView32",
    373                     TVS_HASBUTTONS | TVS_HASLINES | TVS_EDITLABELS | 
     373                    TVS_HASBUTTONS | TVS_HASLINES | TVS_EDITLABELS |
    374374                    TVS_SHOWSELALWAYS | WS_BORDER | WS_TABSTOP,7,4,160,204
    375375    GROUPBOX        "Site details",IDC_STATIC,174,0,169,244
    376376    LTEXT           "&Host:",IDC_STATIC,180,11,18,8
     
    378378    LTEXT           "&Port:",IDC_STATIC,312,11,16,8
    379379    EDITTEXT        IDC_PORT,312,20,25,14,ES_AUTOHSCROLL | ES_NUMBER
    380380    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 |
    382382                    WS_VSCROLL | WS_TABSTOP
    383383    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 |
    385385                    WS_GROUP,189,77,53,10
    386386    CONTROL         "Norma&l",IDC_RADIO2,"Button",BS_AUTORADIOBUTTON,259,77,
    387387                    38,10
     
    395395                    BS_AUTOCHECKBOX | BS_MULTILINE | WS_TABSTOP,180,162,86,
    396396                    10
    397397    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 |
    399399                    ES_AUTOVSCROLL | WS_VSCROLL
    400     CONTROL         "De&fault site",IDC_DEFAULT,"Button",BS_AUTORADIOBUTTON | 
     400    CONTROL         "De&fault site",IDC_DEFAULT,"Button",BS_AUTORADIOBUTTON |
    401401                    WS_GROUP,180,226,51,10
    402402    PUSHBUTTON      "&New Site",IDC_NEW,7,212,50,14,WS_GROUP
    403403    PUSHBUTTON      "N&ew Folder",IDC_SITEMANAGER_NEWFOLDER,62,212,50,14,
     
    429429    LTEXT           "Current configuration",IDC_STATIC,14,50,66,8
    430430    LTEXT           "Show these parts of the GUI:",IDC_STATIC,27,62,39,28,
    431431                    NOT WS_GROUP
    432     CONTROL         "&Toolbar",IDC_SHOWTOOLBAR,"Button",BS_AUTOCHECKBOX | 
     432    CONTROL         "&Toolbar",IDC_SHOWTOOLBAR,"Button",BS_AUTOCHECKBOX |
    433433                    WS_TABSTOP,72,61,40,10
    434     CONTROL         "&Statusbar",IDC_SHOWSTATUSBAR,"Button",BS_AUTOCHECKBOX | 
     434    CONTROL         "&Statusbar",IDC_SHOWSTATUSBAR,"Button",BS_AUTOCHECKBOX |
    435435                    WS_TABSTOP,138,61,46,10
    436436    CONTROL         "&Quickconnect Bar",IDC_SHOWQUICKCONNECTBAR,"Button",
    437437                    BS_AUTOCHECKBOX | WS_TABSTOP,203,61,73,10
     
    447447    CONTROL         "Show &view labels",IDC_VIEWLABELS,"Button",
    448448                    BS_AUTOCHECKBOX | WS_TABSTOP,13,123,71,10
    449449    CONTROL         "Remember &window size and position of FileZilla",
    450                     IDC_REMEMBERWINDOWPOS,"Button",BS_AUTOCHECKBOX | 
     450                    IDC_REMEMBERWINDOWPOS,"Button",BS_AUTOCHECKBOX |
    451451                    WS_TABSTOP,13,134,163,10
    452452    CONTROL         "Mi&nimize to taskbar (default)",
    453453                    IDC_OPTIONS_INTERFACE_MINIMIZETOTRAY,"Button",
     
    466466BEGIN
    467467    CONTROL         "&Enable Kerberos GSS support",IDC_USEGSS,"Button",
    468468                    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 |
    470470                    LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP
    471471    EDITTEXT        IDC_GSSSERVERNAME,129,64,49,14,ES_AUTOHSCROLL
    472472    PUSHBUTTON      "&Add",IDC_SERVERADD,128,83,50,14
     
    487487    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.",
    488488                    IDC_STATIC,7,7,272,35
    489489    CONTROL         "&Trace messages from the ftp engine",
    490                     IDC_DEBUG_ENGINETRACE,"Button",BS_AUTOCHECKBOX | 
     490                    IDC_DEBUG_ENGINETRACE,"Button",BS_AUTOCHECKBOX |
    491491                    WS_TABSTOP,7,43,129,10
    492492    CONTROL         "&Show raw directory listing",IDC_DEBUG_SHOWRAWLISTING,
    493493                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,56,129,10
     
    506506    LTEXT           "&User",IDC_STATIC,7,36,16,8
    507507    EDITTEXT        IDC_EDIT7,7,47,40,14,ES_AUTOHSCROLL | WS_DISABLED
    508508    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 |
    510510                    WS_DISABLED
    511511    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 |
    513513                    WS_TABSTOP,17,81,33,10
    514514    CONTROL         "SITE hostname",IDC_RADIO4,"Button",BS_AUTORADIOBUTTON,
    515515                    17,91,65,10
     
    536536    LTEXT           "On this page you can configure the appearance of the local file list.",
    537537                    IDC_STATIC,7,7,211,8
    538538    CONTROL         "&Always use the following configuration:",
    539                     IDC_OPTIONS_LOCALVIEW_ALWAYS,"Button",BS_AUTORADIOBUTTON | 
     539                    IDC_OPTIONS_LOCALVIEW_ALWAYS,"Button",BS_AUTORADIOBUTTON |
    540540                    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
    542542                    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 |
    544544                    WS_VSCROLL | WS_TABSTOP
    545545    LTEXT           "Visible columns when using details style:",IDC_STATIC,
    546546                    19,49,127,8,NOT WS_GROUP
     
    587587    CONTROL         "&Always use the following configuration:",
    588588                    IDC_OPTIONS_REMOTEVIEW_ALWAYS,"Button",
    589589                    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
    591591                    WS_GROUP
    592592    COMBOBOX        IDC_OPTIONS_REMOTEVIEW_STYLE,73,34,72,76,
    593593                    CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
     
    659659    LTEXT           "There are different types of directory caching available.",
    660660                    IDC_STATIC,7,114,174,8,NOT WS_VISIBLE
    661661    CONTROL         "Purge cache when FileZilla quits",
    662                     IDC_OPTIONS_CACHE_CACHETYPE,"Button",BS_AUTORADIOBUTTON | 
     662                    IDC_OPTIONS_CACHE_CACHETYPE,"Button",BS_AUTORADIOBUTTON |
    663663                    NOT WS_VISIBLE,7,124,118,10
    664664    CONTROL         "Use persistent cache",IDC_OPTIONS_CACHE_CACHETYPE2,
    665665                    "Button",BS_AUTORADIOBUTTON | NOT WS_VISIBLE,7,134,83,10
    666666END
    667667
    668668IDD_SERVER_CHANGEPASS DIALOGEX 0, 0, 186, 138
    669 STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | 
     669STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION |
    670670    WS_SYSMENU
    671671FONT 8, "MS Shell Dlg", 0, 0, 0x0
    672672BEGIN
     
    675675    LTEXT           "Please enter your old password for confirmation that you are allowed to change the password and enter the new password an confirm it.",
    676676                    IDC_STATIC,7,33,172,24
    677677    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 |
    679679                    ES_AUTOHSCROLL
    680680    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 |
    682682                    ES_AUTOHSCROLL
    683683    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 |
    685685                    ES_AUTOHSCROLL
    686686    DEFPUSHBUTTON   "&OK",IDOK,35,117,50,14
    687687    PUSHBUTTON      "&Cancel",IDCANCEL,99,117,50,14
     
    803803    PUSHBUTTON      "&Browse",IDC_OPTIONS_VIEWEDIT_DEFAULT_BROWSE,229,31,50,
    804804                    14
    805805    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 |
    808808                    WS_VSCROLL | WS_HSCROLL
    809809    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.",
    810810                    IDC_STATIC,7,161,272,25
     
    825825    LTEXT           "&System:",IDC_STATIC,177,41,26,8
    826826    EDITTEXT        IDC_OPTIONS_IDENT_SYSTEM,206,38,73,14,ES_AUTOHSCROLL
    827827    CONTROL         "Enable only when &connecting",
    828                     IDC_OPTIONS_IDENT_IDENTCONNECT,"Button",BS_AUTOCHECKBOX | 
     828                    IDC_OPTIONS_IDENT_IDENTCONNECT,"Button",BS_AUTOCHECKBOX |
    829829                    WS_TABSTOP,7,58,109,10
    830830    CONTROL         "Only accept requests from the same &IP",
    831                     IDC_OPTIONS_IDENT_SAMEIP,"Button",BS_AUTOCHECKBOX | 
     831                    IDC_OPTIONS_IDENT_SAMEIP,"Button",BS_AUTOCHECKBOX |
    832832                    WS_TABSTOP,142,58,137,10
    833833END
    834834
     
    848848                    ES_AUTOHSCROLL | ES_NUMBER | WS_DISABLED
    849849    LTEXT           "kB/s",IDC_STATIC,162,27,16,8
    850850    LISTBOX         IDC_SPEEDLIMIT_DOWNLOAD_RULES_LIST,24,46,211,50,
    851                     LBS_NOINTEGRALHEIGHT | WS_DISABLED | WS_VSCROLL | 
     851                    LBS_NOINTEGRALHEIGHT | WS_DISABLED | WS_VSCROLL |
    852852                    WS_GROUP | WS_TABSTOP
    853853    PUSHBUTTON      "&Add",IDC_SPEEDLIMIT_DOWNLOAD_ADD,240,47,35,10,
    854854                    WS_DISABLED
     
    866866                    BS_AUTORADIOBUTTON,12,125,91,10
    867867    CONTROL         "Us&e Speed Limit Rules:",IDC_SPEEDLIMIT_UPLOAD_RULES,
    868868                    "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 |
    870870                    ES_NUMBER | WS_DISABLED
    871871    LTEXT           "kB/s",IDC_STATIC,163,125,16,8
    872872    LISTBOX         IDC_SPEEDLIMIT_UPLOAD_RULES_LIST,24,146,211,50,
    873                     LBS_NOINTEGRALHEIGHT | WS_DISABLED | WS_VSCROLL | 
     873                    LBS_NOINTEGRALHEIGHT | WS_DISABLED | WS_VSCROLL |
    874874                    WS_GROUP | WS_TABSTOP
    875875    PUSHBUTTON      "A&dd",IDC_SPEEDLIMIT_UPLOAD_ADD,240,147,35,10,
    876876                    WS_DISABLED
     
    887887FONT 8, "MS Shell Dlg"
    888888BEGIN
    889889    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 |
    891891                    WS_TABSTOP,15,18,33,10
    892892    CONTROL         "DateTimePicker1",IDC_DATE_VALUE,"SysDateTimePick32",
    893                     DTS_RIGHTALIGN | DTS_APPCANPARSE | DTS_LONGDATEFORMAT | 
     893                    DTS_RIGHTALIGN | DTS_APPCANPARSE | DTS_LONGDATEFORMAT |
    894894                    WS_TABSTOP,50,16,125,15
    895     CONTROL         "&From:",IDC_FROM_CHECK,"Button",BS_AUTOCHECKBOX | 
     895    CONTROL         "&From:",IDC_FROM_CHECK,"Button",BS_AUTOCHECKBOX |
    896896                    WS_TABSTOP,15,39,33,10
    897897    CONTROL         "DateTimePicker2",IDC_FROM_TIME,"SysDateTimePick32",
    898                     DTS_RIGHTALIGN | DTS_UPDOWN | DTS_APPCANPARSE | 
     898                    DTS_RIGHTALIGN | DTS_UPDOWN | DTS_APPCANPARSE |
    899899                    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 |
    901901                    WS_TABSTOP,117,39,27,10
    902902    CONTROL         "DateTimePicker2",IDC_TO_TIME,"SysDateTimePick32",
    903                     DTS_RIGHTALIGN | DTS_UPDOWN | DTS_APPCANPARSE | 
     903                    DTS_RIGHTALIGN | DTS_UPDOWN | DTS_APPCANPARSE |
    904904                    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 |
    906906                    WS_TABSTOP,15,57,41,10
    907     CONTROL         "&Tuesday",IDC_CHECK_DAY2,"Button",BS_AUTOCHECKBOX | 
     907    CONTROL         "&Tuesday",IDC_CHECK_DAY2,"Button",BS_AUTOCHECKBOX |
    908908                    WS_TABSTOP,61,57,43,10
    909     CONTROL         "&Wednesday",IDC_CHECK_DAY3,"Button",BS_AUTOCHECKBOX | 
     909    CONTROL         "&Wednesday",IDC_CHECK_DAY3,"Button",BS_AUTOCHECKBOX |
    910910                    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 |
    912912                    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 |
    914914                    WS_TABSTOP,15,73,35,10
    915     CONTROL         "&Saturday",IDC_CHECK_DAY6,"Button",BS_AUTOCHECKBOX | 
     915    CONTROL         "&Saturday",IDC_CHECK_DAY6,"Button",BS_AUTOCHECKBOX |
    916916                    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 |
    918918                    WS_TABSTOP,107,73,40,10
    919919    LTEXT           "S&peed:",IDC_STATIC,7,99,24,8
    920920    EDITTEXT        IDC_SPEED,34,96,50,14,ES_AUTOHSCROLL | ES_NUMBER
     
    956956END
    957957
    958958IDD_SITEMANAGER_ADVANCED DIALOGEX 0, 0, 239, 191
    959 STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | 
     959STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION |
    960960    WS_SYSMENU
    961961FONT 8, "MS Shell Dlg", 0, 0, 0x1
    962962BEGIN
     
    980980    EDITTEXT        IDC_SITEMANAGER_ADVANCED_TZOFFSET,90,129,25,14,
    981981                    ES_AUTOHSCROLL | ES_NUMBER
    982982    CONTROL         "Spin1",IDC_SITEMANAGER_ADVANCED_TZSPIN,"msctls_updown32",
    983                     UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY | 
     983                    UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY |
    984984                    UDS_ARROWKEYS | UDS_NOTHOUSANDS,103,127,11,14
    985985    LTEXT           "hours",IDC_STATIC,119,131,18,8
    986986    EDITTEXT        IDC_SITEMANAGER_ADVANCED_TZOFFSET2,141,128,25,14,
    987987                    ES_AUTOHSCROLL | ES_NUMBER
    988988    CONTROL         "Spin1",IDC_SITEMANAGER_ADVANCED_TZSPIN2,"msctls_updown32",
    989                     UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY | 
     989                    UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY |
    990990                    UDS_ARROWKEYS | UDS_NOTHOUSANDS,151,126,11,14
    991991    LTEXT           "minutes",IDC_STATIC,170,130,25,8
    992992    LTEXT           "Use UTF8 on server if available:",IDC_STATIC,7,154,103,
     
    10291029CAPTION "FileZilla Options"
    10301030FONT 8, "MS Shell Dlg"
    10311031BEGIN
    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 |
    10341034                    TVS_SHOWSELALWAYS | WS_BORDER | WS_TABSTOP,4,5,113,174
    10351035    CONTROL         "",IDC_STATIC,"Static",SS_ETCHEDFRAME,4,187,113,66
    10361036    DEFPUSHBUTTON   "OK",IDOK,12,194,97,14
     
    10931093//
    10941094
    10951095#ifdef APSTUDIO_INVOKED
    1096 GUIDELINES DESIGNINFO 
     1096GUIDELINES DESIGNINFO
    10971097BEGIN
    10981098    IDD_MANUALTRANSFER, DIALOG
    10991099    BEGIN
     
    12361236IDD_MANUALTRANSFER DLGINIT
    12371237BEGIN
    12381238    IDC_MANUALTRANSFER_SERVERTYPE, 0x403, 4, 0
    1239 0x5446, 0x0050, 
     12390x5446, 0x0050,
    12401240    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" 
     12410x5446, 0x2050, 0x766f, 0x7265, 0x5320, 0x4c53, 0x542f, 0x534c, 0x2820,
     12420x6d69, 0x6c70, 0x6369, 0x7469, 0x6520, 0x636e, 0x7972, 0x7470, 0x6f69,
     12430x296e, "\000"
    12441244    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" 
     12450x5446, 0x2050, 0x766f, 0x7265, 0x5320, 0x4c53, 0x2820, 0x7865, 0x6c70,
     12460x6369, 0x7469, 0x6520, 0x636e, 0x7972, 0x7470, 0x6f69, 0x296e, "\000"
    12471247    IDC_MANUALTRANSFER_SERVERTYPE, 0x403, 16, 0
    1248 0x4653, 0x5054, 0x7520, 0x6973, 0x676e, 0x5320, 0x4853, 0x0032, 
     12480x4653, 0x5054, 0x7520, 0x6973, 0x676e, 0x5320, 0x4853, 0x0032,
    12491249    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" 
     12500x5446, 0x2050, 0x766f, 0x7265, 0x5420, 0x534c, 0x2820, 0x7865, 0x6c70,
     12510x6369, 0x7469, 0x6520, 0x636e, 0x7972, 0x7470, 0x6f69, 0x296e, "\000"
    12521252    0
    12531253END
    12541254
    12551255IDD_OPTIONS_LOCALVIEW DLGINIT
    12561256BEGIN
    12571257    IDC_OPTIONS_LOCALVIEW_STYLE, 0x403, 8, 0
    1258 0x6544, 0x6174, 0x6c69, 0x0073, 
     12580x6544, 0x6174, 0x6c69, 0x0073,
    12591259    IDC_OPTIONS_LOCALVIEW_STYLE, 0x403, 5, 0
    1260 0x694c, 0x7473, "\000" 
     12600x694c, 0x7473, "\000"
    12611261    IDC_OPTIONS_LOCALVIEW_STYLE, 0x403, 12, 0
    1262 0x614c, 0x6772, 0x2065, 0x6349, 0x6e6f, 0x0073, 
     12620x614c, 0x6772, 0x2065, 0x6349, 0x6e6f, 0x0073,
    12631263    IDC_OPTIONS_LOCALVIEW_STYLE, 0x403, 12, 0
    1264 0x6d53, 0x6c61, 0x206c, 0x6349, 0x6e6f, 0x0073, 
     12640x6d53, 0x6c61, 0x206c, 0x6349, 0x6e6f, 0x0073,
    12651265    IDC_OPTIONS_LOCALVIEW_SIZEFORMAT, 0x403, 5, 0
    1266 0x7541, 0x6f74, "\000" 
     12660x7541, 0x6f74, "\000"
    12671267    IDC_OPTIONS_LOCALVIEW_SIZEFORMAT, 0x403, 6, 0
    1268 0x7942, 0x6574, 0x0073, 
     12680x7942, 0x6574, 0x0073,
    12691269    IDC_OPTIONS_LOCALVIEW_SIZEFORMAT, 0x403, 3, 0
    1270 0x424b, "\000" 
     12700x424b, "\000"
    12711271    IDC_OPTIONS_LOCALVIEW_SIZEFORMAT, 0x403, 3, 0
    1272 0x424d, "\000" 
     12720x424d, "\000"
    12731273    0
    12741274END
    12751275
    12761276IDD_OPTIONS_REMOTEVIEW DLGINIT
    12771277BEGIN
    12781278    IDC_OPTIONS_REMOTEVIEW_STYLE, 0x403, 8, 0
    1279 0x6544, 0x6174, 0x6c69, 0x0073, 
     12790x6544, 0x6174, 0x6c69, 0x0073,
    12801280    IDC_OPTIONS_REMOTEVIEW_STYLE, 0x403, 5, 0
    1281 0x694c, 0x7473, "\000" 
     12810x694c, 0x7473, "\000"
    12821282    IDC_OPTIONS_REMOTEVIEW_STYLE, 0x403, 12, 0
    1283 0x614c, 0x6772, 0x2065, 0x6349, 0x6e6f, 0x0073, 
     12830x614c, 0x6772, 0x2065, 0x6349, 0x6e6f, 0x0073,
    12841284    IDC_OPTIONS_REMOTEVIEW_STYLE, 0x403, 12, 0
    1285 0x6d53, 0x6c61, 0x206c, 0x6349, 0x6e6f, 0x0073, 
     12850x6d53, 0x6c61, 0x206c, 0x6349, 0x6e6f, 0x0073,
    12861286    IDC_OPTIONS_REMOTEVIEW_SIZEFORMAT, 0x403, 5, 0
    1287 0x7541, 0x6f74, "\000" 
     12870x7541, 0x6f74, "\000"
    12881288    IDC_OPTIONS_REMOTEVIEW_SIZEFORMAT, 0x403, 6, 0
    1289 0x7942, 0x6574, 0x0073, 
     12890x7942, 0x6574, 0x0073,
    12901290    IDC_OPTIONS_REMOTEVIEW_SIZEFORMAT, 0x403, 3, 0
    1291 0x424b, "\000" 
     12910x424b, "\000"
    12921292    IDC_OPTIONS_REMOTEVIEW_SIZEFORMAT, 0x403, 3, 0
    1293 0x424d, "\000" 
     12930x424d, "\000"
    12941294    0
    12951295END
    12961296
    12971297IDD_SITEMANAGER DLGINIT
    12981298BEGIN
    12991299    IDC_SERVERTYPE, 0x403, 4, 0
    1300 0x5446, 0x0050, 
     13000x5446, 0x0050,
    13011301    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" 
     13020x5446, 0x2050, 0x766f, 0x7265, 0x5320, 0x4c53, 0x542f, 0x534c, 0x2820,
     13030x6d69, 0x6c70, 0x6369, 0x7469, 0x6520, 0x636e, 0x7972, 0x7470, 0x6f69,
     13040x296e, "\000"
    13051305    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" 
     13060x5446, 0x2050, 0x766f, 0x7265, 0x5320, 0x4c53, 0x2820, 0x7865, 0x6c70,
     13070x6369, 0x7469, 0x6520, 0x636e, 0x7972, 0x7470, 0x6f69, 0x296e, "\000"
    13081308    IDC_SERVERTYPE, 0x403, 16, 0
    1309 0x4653, 0x5054, 0x7520, 0x6973, 0x676e, 0x5320, 0x4853, 0x0032, 
     13090x4653, 0x5054, 0x7520, 0x6973, 0x676e, 0x5320, 0x4853, 0x0032,
    13101310    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" 
     13110x5446, 0x2050, 0x766f, 0x7265, 0x5420, 0x534c, 0x2820, 0x7865, 0x6c70,
     13120x6369, 0x7469, 0x6520, 0x636e, 0x7972, 0x7470, 0x6f69, 0x296e, "\000"
    13131313    0
    13141314END
    13151315
    13161316IDD_SITEMANAGER_ADVANCED DLGINIT
    13171317BEGIN
    13181318    IDC_SITEMANAGER_ADVANCED_UTF8, 0x403, 5, 0
    1319 0x7541, 0x6f74, "\000" 
     13190x7541, 0x6f74, "\000"
    13201320    IDC_SITEMANAGER_ADVANCED_UTF8, 0x403, 6, 0
    1321 0x6f46, 0x6372, 0x0065, 
     13210x6f46, 0x6372, 0x0065,
    13221322    IDC_SITEMANAGER_ADVANCED_UTF8, 0x403, 6, 0
    1323 0x654e, 0x6576, 0x0072, 
     13230x654e, 0x6576, 0x0072,
    13241324    0
    13251325END
    13261326
     
    13311331// TEXTINCLUDE
    13321332//
    13331333
    1334 1 TEXTINCLUDE 
     13341 TEXTINCLUDE
    13351335BEGIN
    13361336    "resource.h\0"
    13371337END
    13381338
    1339 2 TEXTINCLUDE 
     13392 TEXTINCLUDE
    13401340BEGIN
    13411341    "#include ""afxres.h""\r\n"
    13421342    "\0"
    13431343END
    13441344
    1345 3 TEXTINCLUDE 
     13453 TEXTINCLUDE
    13461346BEGIN
    13471347    "#define _AFX_NO_OLE_RESOURCES\r\n"
    13481348    "#define _AFX_NO_TRACKER_RESOURCES\r\n"
     
    14181418// Menu
    14191419//
    14201420
    1421 IDR_MAINFRAME MENU 
     1421IDR_MAINFRAME MENU
    14221422BEGIN
    14231423    POPUP "&File"
    14241424    BEGIN
     
    15621562    POPUP "&Server"
    15631563    BEGIN
    15641564        MENUITEM "&Change password...",         ID_MENU_SERVER_CHANGEPASS
    1565         MENUITEM "&Enter raw FTP command...\tCtrl+F", 
     1565        MENUITEM "&Enter raw FTP command...\tCtrl+F",
    15661566                                                ID_MENU_SERVER_ENTERRAWCOMMAND
    15671567
    15681568        MENUITEM "Copy &URL to clipboard",      ID_MENU_SERVER_COPYURLTOCLIPBOARD
     
    15781578    END
    15791579END
    15801580
    1581 IDR_OUTPUTCONTEXT MENU 
     1581IDR_OUTPUTCONTEXT MENU
    15821582BEGIN
    15831583    POPUP "OutputContext"
    15841584    BEGIN
     
    15911591    END
    15921592END
    15931593
    1594 IDR_FTPCONTEXTMENU MENU 
     1594IDR_FTPCONTEXTMENU MENU
    15951595BEGIN
    15961596    POPUP "FtpContext"
    15971597    BEGIN
     
    16081608    END
    16091609END
    16101610
    1611 IDR_LOCALCONTEXTMENU MENU 
     1611IDR_LOCALCONTEXTMENU MENU
    16121612BEGIN
    16131613    POPUP "LocalContext"
    16141614    BEGIN
     
    16271627    END
    16281628END
    16291629
    1630 IDR_QUEUECONTEXTMENU MENU 
     1630IDR_QUEUECONTEXTMENU MENU
    16311631BEGIN
    16321632    POPUP "QueueContext"
    16331633    BEGIN
     
    16471647    END
    16481648END
    16491649
    1650 IDR_SITEMANAGER MENU 
     1650IDR_SITEMANAGER MENU
    16511651BEGIN
    16521652    POPUP "&File"
    16531653    BEGIN
     
    16641664    END
    16651665END
    16661666
    1667 IDR_LOCALTREECONTEXTMENU MENU 
     1667IDR_LOCALTREECONTEXTMENU MENU
    16681668BEGIN
    16691669    POPUP "LocalTreeContext"
    16701670    BEGIN
     
    16781678    END
    16791679END
    16801680
    1681 IDR_SYSTRAY_MENU MENU 
     1681IDR_SYSTRAY_MENU MENU
    16821682BEGIN
    16831683    POPUP "POPUP"
    16841684    BEGIN
     
    16941694// Accelerator
    16951695//
    16961696
    1697 IDR_MAINFRAME ACCELERATORS 
     1697IDR_MAINFRAME ACCELERATORS
    16981698BEGIN
    16991699    "D",            ID_TOOLBAR_DISCONNECT,  VIRTKEY, CONTROL, NOINVERT
    1700     "F",            ID_MENU_SERVER_ENTERRAWCOMMAND, VIRTKEY, CONTROL, 
     1700    "F",            ID_MENU_SERVER_ENTERRAWCOMMAND, VIRTKEY, CONTROL,
    17011701                                                    NOINVERT
    17021702    "Q",            IDOK,                   VIRTKEY, CONTROL, NOINVERT
    17031703    "R",            ID_TOOLBAR_RECONNECT,   VIRTKEY, CONTROL, NOINVERT
     
    17591759// String Table
    17601760//
    17611761
    1762 STRINGTABLE 
     1762STRINGTABLE
    17631763BEGIN
    17641764    AFX_IDS_APP_TITLE       "FileZilla"
    17651765    AFX_IDS_IDLEMESSAGE     "Ready"
    17661766END
    17671767
    1768 STRINGTABLE 
     1768STRINGTABLE
    17691769BEGIN
    17701770    ID_APP_ABOUT            "About FileZilla"
    17711771    ID_APP_EXIT             "Quit FileZilla"
    17721772    ID_HELP                 "Displays the contents of the help"
    17731773END
    17741774
    1775 STRINGTABLE 
     1775STRINGTABLE
    17761776BEGIN
    17771777    ID_VIEW_TOOLBAR         "Show or hide the toolbar"
    17781778    ID_VIEW_STATUS_BAR      "Show or hide the status bar"
    17791779END
    17801780
    1781 STRINGTABLE 
     1781STRINGTABLE
    17821782BEGIN
    17831783    AFX_IDS_SCCLOSE         "Quit FileZilla"
    17841784END
    17851785
    1786 STRINGTABLE 
     1786STRINGTABLE
    17871787BEGIN
    17881788    IDP_SOCKETS_INIT_FAILED "Sockets initialization failed"
    17891789    IDS_BROWSEFORFOLDER     "Please select local folder."
     
    17951795    IDS_CERT_ERR_CERT_UNTRUSTED "Certificate not trusted."
    17961796END
    17971797
    1798 STRINGTABLE 
     1798STRINGTABLE
    17991799BEGIN
    18001800    IDS_REMOTELIST_EMPTY    "<Empty directory listing>"
    18011801    IDS_SITEMANAGER_NEWFOLDER "New folder"
     
    18151815    IDS_TITLE_CONNECTING    "Connecting to %s"
    18161816END
    18171817
    1818 STRINGTABLE 
     1818STRINGTABLE
    18191819BEGIN
    18201820    IDS_TOOLBAR_SITEDROPDOWN_EMPTYFOLDER "Empty folder"
    18211821    IDS_VIEWLABEL_LOCAL     "Local Site:"
     
    18241824    IDS_DIRINFO_FILES       "%d files with %I64d bytes."
    18251825    IDS_DIRINFO_DIRSANDFILES "%d folders and %d files with %I64d bytes."
    18261826    IDS_DIRINFO_FILESMIN    "%d files with at least %I64d bytes."
    1827     IDS_DIRINFO_DIRSANDFILESMIN 
     1827    IDS_DIRINFO_DIRSANDFILESMIN
    18281828                            "%d folders and %d files with at least %I64d bytes."
    18291829    IDS_DIRINFO_SELECTED_FILES "Selected %d files with %I64d bytes."
    18301830    IDS_DIRINFO_SELECTED_DIRS "Selected %d folders."
    1831     IDS_DIRINFO_SELECTED_DIRSANDFILES 
     1831    IDS_DIRINFO_SELECTED_DIRSANDFILES
    18321832                            "Selected %d folders and %d files with %I64d bytes."
    1833     IDS_DIRINFO_SELECTED_FILESMIN 
     1833    IDS_DIRINFO_SELECTED_FILESMIN
    18341834                            "Selected %d files with at least %I64d bytes."
    1835     IDS_DIRINFO_SELECTED_DIRSANDFILESMIN 
     1835    IDS_DIRINFO_SELECTED_DIRSANDFILESMIN
    18361836                            "Selected %d folders and %d files with at least %I64d bytes"
    18371837    IDS_DIRINFO_FILE        "1 file with %I64d bytes."
    18381838    IDS_DIRINFO_DIR         "1 folder."
    18391839    IDS_DIRINFO_DIRANDFILES "1 folder and %d files with %I64d bytes."
    18401840END
    18411841
    1842 STRINGTABLE 
     1842STRINGTABLE
    18431843BEGIN
    1844     IDS_CHANGEDIALOG_DIRECTORY 
     1844    IDS_CHANGEDIALOG_DIRECTORY
    18451845                            "Please select the new attributes for the directory ""%s"""
    18461846    IDS_CHANGEDIALOG_FILE   "Please select the new attributes for the file ""%s"""
    1847     IDS_CHANGEDIALOG_MULTIPLEFILES 
     1847    IDS_CHANGEDIALOG_MULTIPLEFILES
    18481848                            "Please select the new attributes for all selected files and folders"
    18491849    IDS_HEADER_DATE         "Date"
    18501850    IDS_HEADER_DIRECTION    "Direction"
     
    18611861    IDS_HEADER_STATUS       "Status"
    18621862END
    18631863
    1864 STRINGTABLE 
     1864STRINGTABLE
    18651865BEGIN
    18661866    IDS_HEADER_TIME         "Time"
    18671867    IDS_MANUALTRANSFER_HOST "Please enter a valid host"
    1868     IDS_MANUALTRANSFER_LOCALFILE 
     1868    IDS_MANUALTRANSFER_LOCALFILE
    18691869                            "Please enter the path and name of the local file"
    18701870    IDS_MANUALTRANSFER_PORT "Please enter a valid server port"
    1871     IDS_MANUALTRANSFER_REMOTEFILE 
     1871    IDS_MANUALTRANSFER_REMOTEFILE
    18721872                            "Please enter the path and name of the remote file"
    18731873    IDS_MANUALTRANSFER_USER "Please enter a username"
    18741874    IDS_QUEUESTATUS_ABORTED "Transfer aborted"
     
    18831883    IDS_QUICKCONN_USER      "User:"
    18841884END
    18851885
    1886 STRINGTABLE 
     1886STRINGTABLE
    18871887BEGIN
    18881888    IDS_ERRORMSG_INTERRUPTED "Interrupted by user!"
    18891889    IDS_ERRORMSG_INVALIDPORT "You have to specify a valid port!"
    1890     IDS_ERRORMSG_LANGUAGEDLLNOTFOUND 
     1890    IDS_ERRORMSG_LANGUAGEDLLNOTFOUND
    18911891                            "Error! The language DLL for the language ""%s"" could not be found!"
    1892     IDS_ERRORMSG_LANGUAGEDLLVERSIONINVALID 
     1892    IDS_ERRORMSG_LANGUAGEDLLVERSIONINVALID
    18931893                            "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"
    18941894    IDS_ERRORMSG_NAMEINUSE  "Please enter a different filename!"
    18951895    IDS_ERRORMSG_PATHNOTFOUND "The path you entered could not be found!"
     
    18971897    IDS_ERRORMSG_PREFIX     "Error:"
    18981898    IDS_ERRORMSG_PROXY_AUTHFAILED "Authentication failed"
    18991899    IDS_ERRORMSG_PROXY_AUTHNOLOGON "Proxy requires authentication"
    1900     IDS_ERRORMSG_PROXY_AUTHTYPEUNKNOWN 
     1900    IDS_ERRORMSG_PROXY_AUTHTYPEUNKNOWN
    19011901                            "Required authtype reported by proxy server is unknown or not supported"
    19021902    IDS_ERRORMSG_PROXY_CANTRESOLVEHOST "Can't resolve host of proxy server"
    19031903    IDS_ERRORMSG_PROXY_NOCONN "Can't connect to proxy server"
    1904     IDS_ERRORMSG_PROXY_REQUESTFAILED 
     1904    IDS_ERRORMSG_PROXY_REQUESTFAILED
    19051905                            "Proxy request failed, can't connect through proxy server"
    1906     IDS_ERRORMSG_SETTINGS_XMLFILE_INVALID 
     1906    IDS_ERRORMSG_SETTINGS_XMLFILE_INVALID
    19071907                            "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
    19091909                            "Can't initialize CSFtpIpC. Please make sure that enough system resources are available!"
    19101910END
    19111911
    1912 STRINGTABLE 
     1912STRINGTABLE
    19131913BEGIN
    1914     IDS_ERRORMSG_SFTP_CANTCREATESFTPPROCESS 
     1914    IDS_ERRORMSG_SFTP_CANTCREATESFTPPROCESS
    19151915                            "Can't start SFTP process. Please ensure that the file 'FzSFtp.exe' is in the same folder as 'FileZilla.exe'"
    19161916    IDS_ERRORMSG_SFTP_CLOSED "FzSFtp.exe was closed, terminating connection."
    1917     IDS_ERRORMSG_SFTP_INVALIDDATA 
     1917    IDS_ERRORMSG_SFTP_INVALIDDATA
    19181918                            "Invalid data was found in the SFtp data channel, terminating connection."
    1919     IDS_ERRORMSG_SFTP_NORESPONSE 
     1919    IDS_ERRORMSG_SFTP_NORESPONSE
    19201920                            "FzSFtp.exe did not respond, terminating connection."
    1921     IDS_ERRORMSG_SITEMANAGERNAMEINUSE 
     1921    IDS_ERRORMSG_SITEMANAGERNAMEINUSE
    19221922                            "That name already exists! Please choose a different one!"
    19231923    IDS_ERRORMSG_SITEMANAGERNEEDLOGONTYPE "Please select the logon type!"
    19241924    IDS_ERRORMSG_SITEMANAGERNEEDNAME "Please enter a name for the FTP Site!"
     
    19271927    IDS_ERRORMSG_TIMEOUT    "Timeout detected!"
    19281928    IDS_ERRORMSG_UPLOADABORTED "Upload aborted"
    19291929    IDS_ERRORMSG_UPLOADFAILED "Upload failed"
    1930     IDS_ERRORMSG_URLSYNTAXINVALID 
     1930    IDS_ERRORMSG_URLSYNTAXINVALID
    19311931                            "Invalid address syntax. Should be [ftp://][User:Pass@]Host[:Port][/Path]\nParameters surrounded by [ ] are optional.\r\nsftp:// and ftps:// are also valid protocols."
    19321932    IDS_ERRORMSG_VIEWEDIT_CANTOPENFILE "Unable to open ""%s"""
    1933     IDS_ERRORMSG_VIEWEDIT_CANTSTARTPROGRAM 
     1933    IDS_ERRORMSG_VIEWEDIT_CANTSTARTPROGRAM
    19341934                            "Unable to start ""%s"" to view / edit ""%s"". Please check your file associations."
    19351935    IDS_ERRORMSG_VIEWEDIT_NODEFPROG "Error, no default program specified"
    19361936END
    19371937
    1938 STRINGTABLE 
     1938STRINGTABLE
    19391939BEGIN
    1940     IDS_ERRORMSG_CANTOPENTRANSFERCHANNEL 
     1940    IDS_ERRORMSG_CANTOPENTRANSFERCHANNEL
    19411941                            "Transfer channel can't be opened. Reason: %s"
    19421942    IDS_ERRORMSG_CANTPARSECMDLINE "Can't parse command line."
    19431943    IDS_ERRORMSG_CANTRESOLVEHOST "Can't resolve host name"
    19441944    IDS_ERRORMSG_CANTRESUME "Resume command not supported by server, overwriting file."
    1945     IDS_ERRORMSG_CANTRESUME_FINISH 
     1945    IDS_ERRORMSG_CANTRESUME_FINISH
    19461946                            "Resume command not supported by server, but local and remote filesize are equal."
    19471947    IDS_ERRORMSG_CANTSENDCOMMAND "Unable to send command! Logging off server!"
    1948     IDS_ERRORMSG_CANTWRITETOFILE 
     1948    IDS_ERRORMSG_CANTWRITETOFILE
    19491949                            "Can't write into the file ""%s"". Reason: %s"
    19501950    IDS_ERRORMSG_CERTREJECTED "Peer certificate rejected"
    1951     IDS_ERRORMSG_CRITICALINTERRUPTED 
     1951    IDS_ERRORMSG_CRITICALINTERRUPTED
    19521952                            "Interrupted by user! Logging off server.."
    19531953    IDS_ERRORMSG_DOWNLOADABORTED "Download aborted"
    19541954    IDS_ERRORMSG_DOWNLOADFAILED "Download failed"
    19551955    IDS_ERRORMSG_ENTERSTRING "You have to enter a string!"
    1956     IDS_ERRORMSG_FILENAMEINVALID 
     1956    IDS_ERRORMSG_FILENAMEINVALID
    19571957                            "A filename can't contain one of the following characters:\n/ \\ : * ? "" < > |"
    19581958    IDS_ERRORMSG_FILEOPENFAILED "Could not open the local file %s"
    19591959    IDS_ERRORMSG_HOSTNEEDED "Please enter a host!"
    19601960    IDS_ERRORMSG_IDENT_CANTSTART "Error starting Ident server"
    19611961END
    19621962
    1963 STRINGTABLE 
     1963STRINGTABLE
    19641964BEGIN
    19651965    ID_INDICATOR_SECURESERVER "    "
    19661966    ID_INDICATOR_ELAPSEDTIME "                             "
    19671967    ID_INDICATOR_TIMELEFT   "                         "
    1968     ID_INDICATOR_PROGRESS_PANE 
     1968    ID_INDICATOR_PROGRESS_PANE
    19691969                            "                                               "
    19701970    ID_INDICATOR_BYTES      "                                                 "
    19711971    ID_INDICATOR_QUEUESIZE  "Queue: %I64d %s"
    19721972END
    19731973
    1974 STRINGTABLE 
     1974STRINGTABLE
    19751975BEGIN
    19761976    ID_INDICATOR_RECVLED    "    "
    19771977    ID_INDICATOR_SENDLED    "    "
    19781978    IDS_DIRINFO_DIRS        "%d folders."
    19791979END
    19801980
    1981 STRINGTABLE 
     1981STRINGTABLE
    19821982BEGIN
    19831983    IDS_INPUTDIALOGTITLE_CREATEDIR "Enter directory name"
    1984     IDS_INPUTDIALOGTEXT_CREATEDIR 
     1984    IDS_INPUTDIALOGTEXT_CREATEDIR
    19851985                            "Please enter the name of the new directory:"
    19861986    IDS_INPUTDIALOGTITLE_FTPCOMMAND "Enter FTP command"
    1987     IDS_INPUTDIALOGTEXT_FTPCOMMAND 
     1987    IDS_INPUTDIALOGTEXT_FTPCOMMAND
    19881988                            "Please enter the command that will be executed on the server:"
    19891989END
    19901990
    1991 STRINGTABLE 
     1991STRINGTABLE
    19921992BEGIN
    19931993    IDS_INPUTDIALOGTITLE_INPUTPASSWORD "Enter your password"
    1994     IDS_INPUTDIALOGTEXT_INPUTPASSWORD 
     1994    IDS_INPUTDIALOGTEXT_INPUTPASSWORD
    19951995                            "Please enter the password that will be used to connect to the server:"
    19961996    IDS_INPUTDIALOGTITLE_RENAME "Enter new filename"
    1997     IDS_INPUTDIALOGTEXT_RENAME 
     1997    IDS_INPUTDIALOGTEXT_RENAME
    19981998                            "Please enter the name under which the file will be stored:"
    1999     IDS_INPUTDIALOGTITLE_KEYBOARDINTERACTIVE 
     1999    IDS_INPUTDIALOGTITLE_KEYBOARDINTERACTIVE
    20002000                            "Keyboard-interactive authentication"
    20012001    IDS_INPUTDIALOGTITLE_INPUTUSER "Enter your username"
    2002     IDS_INPUTDIALOGTEXT_INPUTUSER 
     2002    IDS_INPUTDIALOGTEXT_INPUTUSER
    20032003                            "Please enter the username that will be used to connect to the server:"
    20042004END
    20052005
    2006 STRINGTABLE 
     2006STRINGTABLE
    20072007BEGIN
    20082008    IDS_OPTIONSPAGE_CONNECTION "Connection"
    20092009    IDS_OPTIONSPAGE_DEBUG   "Debug"
     
    20232023    IDS_OPTIONSPAGE_TYPE    "ASCII/Binary"
    20242024END
    20252025
    2026 STRINGTABLE 
     2026STRINGTABLE
    20272027BEGIN
    20282028    IDS_OPTIONSPAGE_VIEWEDIT "File viewing / editing"
    20292029    IDS_OPTIONSPAGE_SSH     "SFTP settings"
     
    20322032    IDS_OPTIONSPAGE_TRANSFER_COMPRESSION "Compression"
    20332033END
    20342034
    2035 STRINGTABLE 
     2035STRINGTABLE
    20362036BEGIN
    20372037    IDS_COMMANDMSG_PREFIX   "Command:"
    20382038END
    20392039
    2040 STRINGTABLE 
     2040STRINGTABLE
    20412041BEGIN
    20422042    IDS_RESPONSEMSG_PREFIX  "Response:"
    20432043    IDS_TRACEMSG_TRACE      "Trace:"
    20442044END
    20452045
    2046 STRINGTABLE 
     2046STRINGTABLE
    20472047BEGIN
    20482048    IDS_ERRORMSG_CANTCONNECT "Unable to connect!"
    2049     IDS_ERRORMSG_CANTCREATEDUETOPORTRANGE 
     2049    IDS_ERRORMSG_CANTCREATEDUETOPORTRANGE
    20502050                            "Could not create socket in the specified port range."
    20512051    IDS_ERRORMSG_CANTCREATEFILE "Failed to create the output file!"
    20522052    IDS_ERRORMSG_CANTESTABLISHSSLCONNECTION "Can't establish SSL connection"
     
    20552055    IDS_ERRORMSG_CANTGETRESPONSE "Can't receive response!"
    20562056    IDS_ERRORMSG_CANTIMPORTFILE "Error importing the file!"
    20572057    IDS_ERRORMSG_CANTINITSSL "Can't initialize SSL library"
    2058     IDS_ERRORMSG_CANTLOADSSLDLLS 
     2058    IDS_ERRORMSG_CANTLOADSSLDLLS
    20592059                            "Can't load SSL libraries. Please make sure the files ""ssleay32.dll"" and ""libeay32.dll"" are in the same folder as FileZilla."
    20602060    IDS_ERRORMSG_CANTOPENFILE "Can't open the input file!"
    2061     IDS_ERRORMSG_CANTOPENLOGFILE 
     2061    IDS_ERRORMSG_CANTOPENLOGFILE
    20622062                            "The log file ""%s"" can't be opened. Logging to file will be disabled for this session."
    20632063END
    20642064
    2065 STRINGTABLE 
     2065STRINGTABLE
    20662066BEGIN
    20672067    IDS_STATUSMSG_CONNECTED "Connected"
    2068     IDS_STATUSMSG_CONNECTEDWITH 
     2068    IDS_STATUSMSG_CONNECTEDWITH
    20692069                            "Connected with %s. Waiting for welcome message..."
    2070     IDS_STATUSMSG_CONNECTEDWITHSFTP 
     2070    IDS_STATUSMSG_CONNECTEDWITHSFTP
    20712071                            "Connected with %s, initializing SFTP connection..."
    2072     IDS_STATUSMSG_CONNECTEDWITHSSL 
     2072    IDS_STATUSMSG_CONNECTEDWITHSSL
    20732073                            "Connected with %s, negotiating SSL connection..."
    20742074    IDS_STATUSMSG_CONNECTING "Connecting to %s ..."
    20752075    IDS_STATUSMSG_DIRLISTSUCCESSFUL "Directory listing successful"
     
    20822082    IDS_STATUSMSG_IDENT_REQUEST "Ident request from: %s"
    20832083    IDS_STATUSMSG_IDENT_START "Ident server started"
    20842084    IDS_STATUSMSG_IDENT_STOP "Ident server stopped"
    2085     IDS_STATUSMSG_LANGUAGEVERSIONDIFFERENT 
     2085    IDS_STATUSMSG_LANGUAGEVERSIONDIFFERENT
    20862086                            "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!"
    20872087END
    20882088
    2089 STRINGTABLE 
     2089STRINGTABLE
    20902090BEGIN
    20912091    IDS_STATUSMSG_PREFIX    "Status:"
    20922092    IDS_STATUSMSG_RECONNECTWAIT "Waiting to reconnect..."
    20932093    IDS_STATUSMSG_RETRIEVINGDIRLIST "Retrieving directory listing..."
    2094     IDS_STATUSMSG_SSLESTABLISHED 
     2094    IDS_STATUSMSG_SSLESTABLISHED
    20952095                            "SSL connection established. Waiting for welcome message..."
    20962096    IDS_STATUSMSG_SSLESTABLISHEDTRANSFER "SSL connection established"
    20972097    IDS_STATUSMSG_UPLOADSTART "Starting upload of %s"
     
    21002100    IDS_STATUSMSG_WAITINGTORETRY_LEFT "Waiting to retry... (%d retries left)"
    21012101END
    21022102
    2103 STRINGTABLE 
     2103STRINGTABLE
    21042104BEGIN
    21052105    IDS_QUESTION_BREAKCONNECTION "Break current connection?"
    21062106    IDS_QUESTION_CANCELOPERATION "Really cancel current operation?"
     
    21092109    IDS_QUESTION_DELETEFILES "Really delete %d files?"
    21102110    IDS_QUESTION_DELETEFILESANDDIRS "Really delete %d files and directories?"
    21112111    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
    21132113                            "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
    21152115                            "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
    21172117                            "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?"
    21182118    IDS_QUESTION_SITEMANAGERDELETE "Really delete ""%s""?"
    2119     IDS_QUESTION_TRANSFER_USEPRIMARY 
     2119    IDS_QUESTION_TRANSFER_USEPRIMARY
    21202120                            "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
    21222122                            """%s"" has been modified.\nDo you want to upload it back to the server?"
    21232123    IDS_QUESTION_VIEWEDIT_MODIFIED_CAPTION "File has been modified"
    21242124END
    21252125
    2126 STRINGTABLE 
     2126STRINGTABLE
    21272127BEGIN
    21282128    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."
    21292129    IDS_OPTIONS_IDENTSYSTEM "Please enter an operating system ID !"
    21302130    IDS_OPTIONS_IDENTUSERID "Please enter a UserID !"
    21312131    IDS_OPTIONS_IMPORTFAILURE "Error! Failed to import settings from '%s'"
    21322132    IDS_OPTIONS_IMPORTOK    "The settings have been successfully imported."
    2133     IDS_OPTIONS_KEEPALIVEBORDERDIFF 
     2133    IDS_OPTIONS_KEEPALIVEBORDERDIFF
    21342134                            "The upper border of the Keep Alive interval must be higher than the lower border!"
    2135     IDS_OPTIONS_KEEPALIVEBORDERHIGH 
     2135    IDS_OPTIONS_KEEPALIVEBORDERHIGH
    21362136                            "The upper border of the Keep Alive interval must be between %d and %d seconds!"
    2137     IDS_OPTIONS_KEEPALIVEBORDERLOW 
     2137    IDS_OPTIONS_KEEPALIVEBORDERLOW
    21382138                            "The lower border of the Keep Alive interval must be between %d and %d seconds!"
    2139     IDS_OPTIONS_LIMITPORTRANGEDIFF 
     2139    IDS_OPTIONS_LIMITPORTRANGEDIFF
    21402140                            "The upper border of the port range must be higher than the lower border!"
    2141     IDS_OPTIONS_LIMITPORTRANGEHIGH 
     2141    IDS_OPTIONS_LIMITPORTRANGEHIGH
    21422142                            "The upper border of the port range must be between %d and %d!"
    2143     IDS_OPTIONS_LIMITPORTRANGELOW 
     2143    IDS_OPTIONS_LIMITPORTRANGELOW
    21442144                            "The lower border of the port range must be between %d and %d!"
    21452145    IDS_OPTIONS_NUMRETRIES  "Please enter a value between %d and %d for the maximum number of retries!"
    21462146END
    21472147
    2148 STRINGTABLE 
     2148STRINGTABLE
    21492149BEGIN
    21502150    IDS_OPTIONS_PROXYHOST   "Please enter a host for the proxy!"
    21512151    IDS_OPTIONS_PROXYPORT   "Please enter a valid port for the proxy!"
     
    21532153    IDS_OPTIONS_TIMEOUT     "Please enter a value between %d and %d for the timeout detection"
    21542154END
    21552155
    2156 STRINGTABLE 
     2156STRINGTABLE
    21572157BEGIN
    21582158    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?"
    21592159    IDS_GSSERROR_CANTLOADDLL "Can't find or load %s"
    2160     IDS_GSSERROR_CANTLOADGSSAPI 
     2160    IDS_GSSERROR_CANTLOADGSSAPI
    21612161                            "One or more of the GSS-API's haven't been loaded!"
    2162     IDS_GSSERROR_CANTLOADKERBEROSAPI 
     2162    IDS_GSSERROR_CANTLOADKERBEROSAPI
    21632163                            "The following API's couldn't be loaded from Kerberos 5 DLL!"
    21642164END
    21652165
    2166 STRINGTABLE 
     2166STRINGTABLE
    21672167BEGIN
    21682168    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
    21702170                            "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
    21722172                            "Format error in certificate's valid fom field."
    21732173    IDS_CERT_ERR_INVALID_CA "Invalid CA certificate."
    21742174    IDS_CERT_ERR_INVALID_PURPOSE "Unsupported certificate purpose."
    2175     IDS_CERT_ERR_KEYUSAGE_NO_CERTSIGN 
     2175    IDS_CERT_ERR_KEYUSAGE_NO_CERTSIGN
    21762176                            "Key usage does not include certificate signing."
    21772177    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
    21792179                            "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
    21812181                            "Unable to decode issuer public key."
    2182     IDS_CERT_ERR_UNABLE_TO_DECRYPT_CERT_SIGNATURE 
     2182    IDS_CERT_ERR_UNABLE_TO_DECRYPT_CERT_SIGNATURE
    21832183                            "Unable to decrypt certificate signature."
    21842184    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
    21862186                            "Unable to get local issuer certificate."
    2187     IDS_CERT_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE 
     2187    IDS_CERT_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE
    21882188                            "Unable to verify the first certifcate."
    21892189    IDS_CERT_ERR_UNKNOWN    "Unknown certificate verification error."
    21902190    IDS_CERT_ERRDEPTH       "The error occured at a depth of %d in the certificate chain."
    21912191    IDS_CERT_OK             "The certificate seems to be valid."
    21922192END
    21932193
    2194 STRINGTABLE 
     2194STRINGTABLE
    21952195BEGIN
    21962196    ID_QUICKCONNECTBAR_MENU_BYPASS "Connect and &bypass proxy settings"
    21972197    ID_QUICKCONNECTBAR_MENU_CLEAR "&Clear"
     
    21992199    ID_REMOTELISTSTYLE_LIST "Shows objects as list"
    22002200END
    22012201
    2202 STRINGTABLE 
     2202STRINGTABLE
    22032203BEGIN
    22042204    ID_REMOTELISTSTYLE_REPORT "Shows objects with details"
    22052205    ID_REMOTELISTSTYLE_SMALLICON "Shows objects with small icons"
     
    22142214    ID_TOOLBAR_REFRESH      "Refresh all views"
    22152215END
    22162216
    2217 STRINGTABLE 
     2217STRINGTABLE
    22182218BEGIN
    22192219    ID_VIEW_LOCALLISTVIEW_FILESIZE "Show filesize"
    22202220    ID_VIEW_LOCALLISTVIEW_FILETYPE "Show filetype"
    2221     ID_VIEW_LOCALLISTVIEW_LASTMODIFIEDTIME 
     2221    ID_VIEW_LOCALLISTVIEW_LASTMODIFIEDTIME
    22222222                            "Show the date and time when the file was modified last"
    22232223    ID_VIEW_MESSAGELOG      "Show or hide the message log"
    22242224    ID_VIEW_QUICKCONNECT_BAR "Show or hide the Quick Connect bar"
     
    22262226    ID_VIEW_REMOTELISTVIEW_FILESIZE "Show the filesize"
    22272227    ID_VIEW_REMOTELISTVIEW_PERMISSIONS "Show the file permissions"
    22282228    ID_VIEW_REMOTELISTVIEW_TIME "Show the time of the file"
    2229     ID_MENU_VIEW_LOCALLISTVIEW_STATUSBAR 
     2229    ID_MENU_VIEW_LOCALLISTVIEW_STATUSBAR
    22302230                            "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
    22322232                            "Toggles the statusbar below the remote file list which displays useful information about (selected) files and folders"
    22332233    ID_QUEUECONTEXT_ABORT   "Aborts selected transfers and removes them from the queue"
    22342234    ID_QUEUECONTEXT_PAUSE   "Pauses selected transfers"
    22352235END
    22362236
    2237 STRINGTABLE 
     2237STRINGTABLE
    22382238BEGIN
    22392239    ID_LOCALLISTSTYLE_SMALLICON "Shows objects with small icons"
    22402240    ID_MENU_QUEUE_EXPORT    "Exports all items in the queue"
    22412241    ID_MENU_QUEUE_IMPORT    "Imports queue entries from an external file"
    22422242    ID_MENU_QUEUE_PROCESSNOW "Starts processing the queue"
    2243     ID_MENU_QUEUE_USEMULTIPLE 
     2243    ID_MENU_QUEUE_USEMULTIPLE
    22442244                            "When enabled, FileZilla can transfer several files at the same time"
    2245     ID_MENU_SERVER_CHANGEPASS 
     2245    ID_MENU_SERVER_CHANGEPASS
    22462246                            "Changes the password of the site. Only few ftp servers support this."
    2247     ID_MENU_SERVER_COPYURLTOCLIPBOARD 
     2247    ID_MENU_SERVER_COPYURLTOCLIPBOARD
    22482248                            "Copies to URL of the current server including the path to the clipboard"
    2249     ID_MENU_SERVER_ENTERRAWCOMMAND 
     2249    ID_MENU_SERVER_ENTERRAWCOMMAND
    22502250                            "Allows you to send raw FTP commands to the server"
    22512251    ID_MENU_TRANSFER_MANUALTRANSFER "Set up a manual transfer"
    22522252END
    22532253
    2254 STRINGTABLE 
     2254STRINGTABLE
    22552255BEGIN
    22562256    ID_CANCELBUTTON         "Cancel current operation"
    22572257    ID_COPYTOSITEMANAGER    "Copies the current connection into a new entry in the Site Manager"
    22582258    ID_EDIT_EXPORTSETTINGS  "Export settings into a file"
    22592259    ID_EDIT_IMPORTSETTINGS  "Import settings from a file"
    22602260    ID_EDIT_SETTINGS        "Enter the options Dialog of FileZilla"
    2261     ID_FILE_CONNECTTODEFAULTSITE 
     2261    ID_FILE_CONNECTTODEFAULTSITE
    22622262                            "Connects to the default site in the Site Manager"
    2263     ID_FILE_EXPORT_ASURLLIST 
     2263    ID_FILE_EXPORT_ASURLLIST
    22642264                            "Export all FTP sites into a textfile as URL list"
    2265     ID_FILE_EXPORT_WITHALLDETAILS 
     2265    ID_FILE_EXPORT_WITHALLDETAILS
    22662266                            "Export all FTP sites into a textfile with all details"
    22672267    ID_FTPCONTEXT_CREATEDIR "Create a directory on the ftp server"
    22682268END
    22692269
    2270 STRINGTABLE 
     2270STRINGTABLE
    22712271BEGIN
    22722272    ID_HELPMENU_CONTENTS    "Displays the table of contents of the help file"
    22732273    ID_HELPMENU_INDEX       "Displays the index of the help file"
     
    22772277    ID_LOCALLISTSTYLE_REPORT "Shows objects with details"
    22782278END
    22792279
    2280 STRINGTABLE 
     2280STRINGTABLE
    22812281BEGIN
    22822282    ID_MENU_VIEW_SHOWHIDDEN "When checked, FileZilla tries to show hidden files on the server."
    22832283    ID_OVERWRITEMENU_ASK    "FileZilla will ask you what to do when a file already exists"
    22842284    ID_OVERWRITEMENU_OVERWRITE "Always overwrite the file"
    2285     ID_OVERWRITEMENU_OVERWRITEIFNEWER 
     2285    ID_OVERWRITEMENU_OVERWRITEIFNEWER
    22862286                            "Overwrite the old file if the new file is newer"
    22872287    ID_OVERWRITEMENU_RENAME "Asks for a new filename"
    22882288    ID_OVERWRITEMENU_RESUME "Resume the transfer if possible"
     
    22902290    ID_PROCESS_QUEUE        "Process the queue"
    22912291END
    22922292
    2293 STRINGTABLE 
     2293STRINGTABLE
    22942294BEGIN
    22952295    IDS_DIRINFO_FILEMIN     "1 file with at least %I64d bytes."
    2296     IDS_DIRINFO_DIRANDFILESMIN 
     2296    IDS_DIRINFO_DIRANDFILESMIN
    22972297                            "1 folder and %d files with at least %I64d bytes."
    22982298    IDS_DIRINFO_DIRANDFILE  "1 folder and 1 file with %I64d bytes."
    22992299    IDS_DIRINFO_DIRSANDFILE "%d folders and 1 file with %I64d bytes."
    23002300    IDS_DIRINFO_DIRANDFILEMIN "1 folder and 1 file with at least %I64d bytes."
    2301     IDS_DIRINFO_DIRSANDFILEMIN 
     2301    IDS_DIRINFO_DIRSANDFILEMIN
    23022302                            "%d folders and 1 file with at least %I64d bytes."
    23032303    IDS_DIRINFO_SELECTED_FILE "Selected 1 file with %I64d bytes."
    23042304    IDS_DIRINFO_SELECTED_DIR "Selected 1 folder."
    2305     IDS_DIRINFO_SELECTED_DIRANDFILES 
     2305    IDS_DIRINFO_SELECTED_DIRANDFILES
    23062306                            "Selected 1 folder and %d files with %I64d bytes."
    23072307    IDS_DIRINFO_SELECTED_FILEMIN "Selected 1 file with at least %I64d bytes."
    2308     IDS_DIRINFO_SELECTED_DIRANDFILESMIN 
     2308    IDS_DIRINFO_SELECTED_DIRANDFILESMIN
    23092309                            "Selected 1 folder and %d files with at least %I64d bytes"
    2310     IDS_DIRINFO_SELECTED_DIRANDFILE 
     2310    IDS_DIRINFO_SELECTED_DIRANDFILE
    23112311                            "Selected 1 folder and 1 file with %I64d bytes."
    2312     IDS_DIRINFO_SELECTED_DIRANDFILEMIN 
     2312    IDS_DIRINFO_SELECTED_DIRANDFILEMIN
    23132313                            "Selected 1 folder and 1 file with at least %I64d bytes"
    2314     IDS_DIRINFO_SELECTED_DIRSANDFILE 
     2314    IDS_DIRINFO_SELECTED_DIRSANDFILE
    23152315                            "Selected %d folders and 1 file with %I64d bytes."
    2316     IDS_DIRINFO_SELECTED_DIRSANDFILEMIN 
     2316    IDS_DIRINFO_SELECTED_DIRSANDFILEMIN
    23172317                            "Selected %d folders and 1 file with at least %I64d bytes"
    23182318    IDS_QUEUESTATUS_PAUSED  "Paused"
    23192319END
    23202320
    2321 STRINGTABLE 
     2321STRINGTABLE
    23222322BEGIN
    23232323    ID_QUEUECONTEXT_RESUME  "Resumes paused transfers"
    23242324    ID_VIEW_REMOTELISTVIEW_FILETYPE "Show the filetype"
    2325     ID_MENU_VIEW_REMOTELISTVIEW_SORTBY_FILENAME 
     2325    ID_MENU_VIEW_REMOTELISTVIEW_SORTBY_FILENAME
    23262326                            "Sort remote filelist by filename"
    2327     ID_MENU_VIEW_REMOTELISTVIEW_SORTBY_FILESIZE 
     2327    ID_MENU_VIEW_REMOTELISTVIEW_SORTBY_FILESIZE
    23282328                            "Sort remote filelist by filesize"
    2329     ID_MENU_VIEW_REMOTELISTVIEW_SORTBY_FILETYPE 
     2329    ID_MENU_VIEW_REMOTELISTVIEW_SORTBY_FILETYPE
    23302330                            "Sort remote filelist by filetype"
    2331     ID_MENU_VIEW_REMOTELISTVIEW_SORTBY_DATETIME 
     2331    ID_MENU_VIEW_REMOTELISTVIEW_SORTBY_DATETIME
    23322332                            "Sort remote filelist by the date/time of the file"
    2333     ID_MENU_VIEW_REMOTELISTVIEW_SORTBY_ASCENDING 
     2333    ID_MENU_VIEW_REMOTELISTVIEW_SORTBY_ASCENDING
    23342334                            "Sort remote filelist in ascending order"
    2335     ID_MENU_VIEW_REMOTELISTVIEW_SORTBY_DESCENDING 
     2335    ID_MENU_VIEW_REMOTELISTVIEW_SORTBY_DESCENDING
    23362336                            "Sort remote filelist in descending order"
    23372337END
    23382338
    2339 STRINGTABLE 
     2339STRINGTABLE
    23402340BEGIN
    23412341    IDS_ERRORMSG_SETFILEPOINTER "Could not set file pointer"
    23422342    IDS_ERRORMSG_UNKNOWNSSLERROR "Unknown error in SSL layer"
    23432343    IDS_ERRORMSG_SSLCERTIFICATEERROR "Could not verify SSL certificate"
    23442344END
    23452345
    2346 STRINGTABLE 
     2346STRINGTABLE
    23472347BEGIN
    2348     ID_MENU_VIEW_LOCALLISTVIEW_SORTBY_FILENAME 
     2348    ID_MENU_VIEW_LOCALLISTVIEW_SORTBY_FILENAME
    23492349                            "Sort local filelist by filename"
    2350     ID_MENU_VIEW_LOCALLISTVIEW_SORTBY_FILESIZE 
     2350    ID_MENU_VIEW_LOCALLISTVIEW_SORTBY_FILESIZE
    23512351                            "Sort local filelist by filesize"
    2352     ID_MENU_VIEW_LOCALLISTVIEW_SORTBY_FILETYPE 
     2352    ID_MENU_VIEW_LOCALLISTVIEW_SORTBY_FILETYPE
    23532353                            "Sort local filelist by filetype"
    2354     ID_MENU_VIEW_LOCALLISTVIEW_SORTBY_LASTMODIFIED 
     2354    ID_MENU_VIEW_LOCALLISTVIEW_SORTBY_LASTMODIFIED
    23552355                            "Sort local filelist by the date/time the files have been modified last"
    23562356    ID_MENU_VIEW_LOCALLISTVIEW_SORTBY_ASCENDING
    23572357                            "Sort local file list in ascending order"
    2358     ID_MENU_VIEW_LOCALLISTVIEW_SORTBY_DESCENDING 
     2358    ID_MENU_VIEW_LOCALLISTVIEW_SORTBY_DESCENDING
    23592359                            "Sort local file list in descending order"
    23602360END
    23612361
     
    23822382
    23832383/////////////////////////////////////////////////////////////////////////////
    23842384#endif    // not APSTUDIO_INVOKED
    2385 
  • source/FtpControlSocket.cpp

    RCS file: /cvsroot/filezilla/FileZilla/source/FtpControlSocket.cpp,v
    retrieving revision 1.116
    diff -u -r1.116 FtpControlSocket.cpp
     
    4040class CFtpControlSocket::CFileTransferData : public CFtpControlSocket::t_operation::COpData
    4141{
    4242public:
    43     CFileTransferData() 
     43    CFileTransferData()
    4444    {
    4545        pDirectoryListing=0;
    4646        nGotTransferEndReply=0;
     
    5252        bTriedPortPasvOnce = FALSE;
    5353        askOnResumeFail = false;
    5454    };
    55     ~CFileTransferData() 
     55    ~CFileTransferData()
    5656    {
    5757        if (pDirectoryListing)
    5858            delete pDirectoryListing;
     
    8484class CFtpControlSocket::CListData:public CFtpControlSocket::t_operation::COpData
    8585{
    8686public:
    87     CListData() 
     87    CListData()
    8888    {
    8989        pDirectoryListing = 0;
    9090        bTriedPortPasvOnce = FALSE;
    9191        lastCmdSentCDUP = false;
    9292    }
    93     virtual ~CListData() 
     93    virtual ~CListData()
    9494    {
    9595        if (pDirectoryListing)
    9696            delete pDirectoryListing;
     
    178178}
    179179
    180180/////////////////////////////////////////////////////////////////////////////
    181 // Member-Funktion CFtpControlSocket 
     181// Member-Funktion CFtpControlSocket
    182182#define CONNECT_INIT -1
    183183#define CONNECT_GSS_INIT -2
    184184#define CONNECT_GSS_AUTHDONE -3
     
    280280    }
    281281
    282282    m_Operation.nOpMode=CSMODE_CONNECT;
    283    
     283
    284284    BOOL bUseGSS = FALSE;
    285285    if (COptions::GetOptionVal(OPTION_USEGSS) && !m_pSslLayer)
    286286    {
     
    351351    CString buf,temp;
    352352    if (server.fwbypass)
    353353        logontype=0;
    354    
     354
    355355    // are we connecting directly to the host (logon type 0) or via a firewall? (logon type>0)
    356356    CString fwhost;
    357357    int fwport;
     
    366366        fwport=COptions::GetOptionVal(OPTION_FWPORT);
    367367        temp=fwhost;
    368368        port=fwport;
    369         if(fwport!=21) 
     369        if(fwport!=21)
    370370            fwhost.Format( _T("%s:%d"), fwhost, fwport); // add port to fwhost (only if port is not 21)
    371371    }
    372372    m_CurrentServer = server;
    373    
     373
    374374    CString hostname = server.host;
    375     if(server.port!=21) 
     375    if(server.port!=21)
    376376        hostname.Format( _T("%s:%d"), hostname, server.port); // add port to hostname (only if port is not 21)
    377377    CString str;
    378378    str.Format(IDS_STATUSMSG_CONNECTING, hostname);
    379379    ShowStatus(str, 0);
    380    
     380
    381381    if ((server.nServerType & FZ_SERVERTYPE_LAYERMASK) & (FZ_SERVERTYPE_LAYER_SSL_EXPLICIT | FZ_SERVERTYPE_LAYER_TLS_EXPLICIT))
    382382        m_Operation.nOpState = CONNECT_SSL_INIT;
    383    
     383
    384384    if (!CControlSocket::Connect(temp, port))
    385385    {
    386386        if (WSAGetLastError() != WSAEWOULDBLOCK)
     
    391391    }
    392392    m_ServerName = logontype?fwhost:hostname;
    393393    m_LastRecvTime = m_LastSendTime = CTime::GetCurrentTime();
    394    
     394
    395395}
    396396
    397397void CFtpControlSocket::LogOnToServer(BOOL bSkipReply /*=FALSE*/)
     
    401401    CString buf, temp;
    402402    const int NUMLOGIN = 9; // currently supports 9 different login sequences
    403403    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
    405405        // in blocks of 3 nums. 1st num is command to send, 2nd num is next point in logon sequence array
    406406        // if 200 series response is rec'd from server as the result of the command, 3rd num is next
    407407        // point in logon sequence if 300 series rec'd
     
    417417    };
    418418    if (m_CurrentServer.fwbypass)
    419419        logontype = 0;
    420    
     420
    421421    if (m_Operation.nOpState == CONNECT_SSL_INIT)
    422422    {
    423423        if (m_CurrentServer.nServerType & FZ_SERVERTYPE_LAYER_SSL_EXPLICIT)
     
    505505            // Some servers refuse to enable UTF8 if client does not send CLNT command
    506506            // to fix compatibility with Internet Explorer, but in the process breaking
    507507            // 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
    509509            // suffer is a questionable decision in my opinion.
    510510            if (Send("CLNT FileZilla"))
    511511                m_Operation.nOpState = CONNECT_CLNT;
     
    550550        if ((m_CurrentServer.nServerType & FZ_SERVERTYPE_LAYERMASK) & (FZ_SERVERTYPE_LAYER_SSL_IMPLICIT | FZ_SERVERTYPE_LAYER_SSL_EXPLICIT | FZ_SERVERTYPE_LAYER_TLS_EXPLICIT))
    551551        {
    552552            m_Operation.nOpState = CONNECT_SSL_PBSZ;
    553             Send("PBSZ 0");         
     553            Send("PBSZ 0");
    554554            return;
    555555        }
    556556
     
    569569                nError|=FZ_REPLY_CRITICALERROR;
    570570
    571571            DoClose(nError);
    572             return; 
     572            return;
    573573        }
    574574    }
    575575    CString hostname = m_CurrentServer.host;
     
    636636            //GSS authentication complete but we still have to go through the standard logon procedure
    637637            m_Operation.nOpState = CONNECT_INIT;
    638638    }
    639    
     639
    640640    if (m_Operation.nOpState==CONNECT_INIT)
    641641    {
    642642        if (logontype)
    643643        {
    644        
     644
    645645            CString str;
    646646            str.Format(IDS_STATUSMSG_FWCONNECT,hostname);
    647647            ShowStatus(str,0);
     
    662662            return;
    663663        }
    664664    }
    665        
     665
    666666    // go through appropriate logon procedure
    667667    int i = logonseq[logontype][m_Operation.nOpState];
    668668    if (m_pGssLayer)
     
    696696            return;
    697697        }
    698698    }
    699     switch(logonseq[logontype][m_Operation.nOpState]) 
     699    switch(logonseq[logontype][m_Operation.nOpState])
    700700    {
    701701        case 0:
    702702            temp="USER "+m_CurrentServer.user;
     
    741741}
    742742
    743743#define BUFFERSIZE 4096
    744 void CFtpControlSocket::OnReceive(int nErrorCode) 
     744void CFtpControlSocket::OnReceive(int nErrorCode)
    745745{
    746746    LogMessage(__FILE__, __LINE__, this,FZ_LOG_DEBUG, _T("OnReceive(%d)  OpMode=%d OpState=%d"), nErrorCode, m_Operation.nOpMode, m_Operation.nOpState);
    747747
     
    918918        m_RecvBuffer.pop_front();
    919919}
    920920
    921 void CFtpControlSocket::OnConnect(int nErrorCode) 
     921void CFtpControlSocket::OnConnect(int nErrorCode)
    922922{
    923923    LogMessage(__FILE__, __LINE__, this,FZ_LOG_DEBUG, _T("OnConnect(%d)  OpMode=%d OpState=%d"), nErrorCode, m_Operation.nOpMode, m_Operation.nOpState);
    924924
     
    950950BOOL CFtpControlSocket::Send(CString str)
    951951{
    952952    USES_CONVERSION;
    953    
     953
    954954    ShowStatus(str, 2);
    955955    str += "\r\n";
    956956    int res = 0;
     
    10041004    else
    10051005    {
    10061006        LPCSTR lpszAsciiSend = T2CA(str);
    1007        
     1007
    10081008        int sendLen = strlen(lpszAsciiSend);
    10091009        if (!m_awaitsReply && !m_sendBuffer)
    10101010            res = CAsyncSocketEx::Send(lpszAsciiSend, strlen(lpszAsciiSend));
     
    10601060void CFtpControlSocket::DoClose(int nError /*=0*/)
    10611061{
    10621062    LogMessage(__FILE__, __LINE__, this,FZ_LOG_DEBUG, _T("DoClose(%d)  OpMode=%d OpState=%d"), nError, m_Operation.nOpMode, m_Operation.nOpState);
    1063    
     1063
    10641064    m_bCheckForTimeout=TRUE;
    10651065    m_pOwner->SetConnected(FALSE);
    10661066    m_bKeepAliveActive=FALSE;
     
    10961096    ASSERT(!m_Operation.nOpMode);
    10971097    m_Operation.nOpMode=CSMODE_DISCONNECT;
    10981098    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
    11001100}
    11011101
    11021102void CFtpControlSocket::CheckForTimeout()
     
    11121112        if (res)
    11131113            return;
    11141114    }
    1115     CTimeSpan span=CTime::GetCurrentTime()-m_LastRecvTime;             
     1115    CTimeSpan span=CTime::GetCurrentTime()-m_LastRecvTime;
    11161116    if (span.GetTotalSeconds()>=delay)
    11171117    {
    11181118        ShowStatus(IDS_ERRORMSG_TIMEOUT, 1);
     
    11481148    #define LIST_WAITFINISH 10
    11491149
    11501150    ASSERT(!m_Operation.nOpMode || m_Operation.nOpMode&CSMODE_LIST);
    1151    
     1151
    11521152    m_Operation.nOpMode|=CSMODE_LIST;
    11531153
    11541154    if (!m_pOwner->IsConnected())
     
    11601160    if (bFinish || nError)
    11611161        if (m_Operation.nOpMode!=CSMODE_LIST)
    11621162            return; //Old message coming in
    1163    
     1163
    11641164    if (nError)
    11651165    {
    11661166        delete m_pTransferSocket;
     
    11811181            delete m_pDirectoryListing;
    11821182            m_pDirectoryListing=0;
    11831183            delete m_pTransferSocket;
    1184             m_pTransferSocket=0;           
     1184            m_pTransferSocket=0;
    11851185            ResetOperation(FZ_REPLY_ERROR);
    11861186            return;
    11871187        }
     
    12141214        }
    12151215        else
    12161216            pData->pDirectoryListing->path = pData->realpath;
    1217        
     1217
    12181218        if (m_Operation.nOpState!=LIST_WAITFINISH)
    12191219            return;
    12201220        else
     
    12231223            m_pTransferSocket=0;
    12241224        }
    12251225    }
    1226    
     1226
    12271227    if (m_Operation.nOpState==LIST_WAITFINISH)
    12281228    {
    12291229        if (!bFinish)
     
    12701270            }
    12711271            cache.Unlock();
    12721272            SetDirectoryListing(pData->pDirectoryListing);
    1273             ResetOperation(FZ_REPLY_OK);           
     1273            ResetOperation(FZ_REPLY_OK);
    12741274            return;
    12751275        }
    12761276        return;
     
    14671467        default:
    14681468            error = TRUE;
    14691469        }
    1470        
     1470
    14711471        if (error)
    14721472        {
    14731473            ResetOperation(FZ_REPLY_ERROR);
    14741474            return;
    1475         }               
     1475        }
    14761476    }
    14771477    if (m_Operation.nOpState==LIST_INIT)
    14781478    { //Initialize some variables
     
    14881488            delete m_pDirectoryListing;
    14891489            m_pDirectoryListing=0;
    14901490        }
    1491        
     1491
    14921492        if (COptions::GetOptionVal(OPTION_PROXYTYPE)!=PROXYTYPE_NOPROXY && !m_CurrentServer.fwbypass)
    14931493            pData->bPasv = TRUE;
    14941494        else if (m_CurrentServer.nPasv == 1)
     
    16231623        if (m_pGssLayer && m_pGssLayer->AuthSuccessful())
    16241624            m_pTransferSocket->UseGSS(m_pGssLayer);
    16251625        m_pTransferSocket->SetFamily(GetFamily());
    1626         if (!m_pTransferSocket->Create(m_pSslLayer && m_bProtP) || 
     1626        if (!m_pTransferSocket->Create(m_pSslLayer && m_bProtP) ||
    16271627            !m_pTransferSocket->AsyncSelect())
    16281628        {
    16291629            ResetOperation(FZ_REPLY_ERROR);
     
    16441644                return;
    16451645            }
    16461646        else
    1647         { 
     1647        {
    16481648            m_pTransferSocket->m_bListening=TRUE;
    16491649            if (m_pProxyLayer)
    16501650            {
     
    16661666                //Set up an active file transfer
    16671667                CString tempHostname;
    16681668                UINT nPort;
    1669                
     1669
    16701670                if (// create listen socket (let MFC choose the port) & start the socket listening
    1671                     !m_pTransferSocket->Listen() || 
     1671                    !m_pTransferSocket->Listen() ||
    16721672                    !m_pTransferSocket->GetSockName(tempHostname, nPort))
    16731673                {
    16741674                    ResetOperation(FZ_REPLY_ERROR);
    16751675                    return;
    16761676                }
    1677        
     1677
    16781678                CString host;
    16791679                bool bError = false;
    16801680
     
    17101710
    17111711                        host.Replace('.', ',');
    17121712                    }
    1713                    
     1713
    17141714                    if (!bError)
    17151715                    {
    17161716                        host.Format(host+",%d,%d", nPort/256, nPort%256);
     
    17751775        }
    17761776
    17771777        m_pTransferSocket->SetActive();
    1778        
     1778
    17791779        cmd = _T("LIST");
    17801780        if (m_pOwner->GetOption(FZAPI_OPTION_SHOWHIDDEN) && !(m_CurrentServer.nServerType & (FZ_SERVERTYPE_SUB_FTP_MVS | FZ_SERVERTYPE_SUB_FTP_VMS)))
    17811781            cmd += _T(" -a");
    1782        
     1782
    17831783        if (!Send(cmd))
    17841784            return;
    1785    
     1785
    17861786        pData->ListStartTime=CTime::GetCurrentTime();
    17871787
    1788         if (pData->bPasv) 
     1788        if (pData->bPasv)
    17891789        {
    17901790            // if PASV create the socket & initiate outbound data channel connection
    17911791            if (!m_pTransferSocket->Connect(pData->host,pData->port))
     
    18191819        List(TRUE,nMode&(CSMODE_TRANSFERERROR|CSMODE_TRANSFERTIMEOUT));
    18201820}
    18211821
    1822 void CFtpControlSocket::OnClose(int nErrorCode) 
     1822void CFtpControlSocket::OnClose(int nErrorCode)
    18231823{
    18241824    LogMessage(__FILE__, __LINE__, this,FZ_LOG_DEBUG, _T("OnClose(%d)  OpMode=%d OpState=%d"), nErrorCode, m_Operation.nOpMode, m_Operation.nOpState);
    18251825    ShowStatus(IDS_STATUSMSG_DISCONNECTED, 1);
     
    18441844    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);
    18451845
    18461846    USES_CONVERSION;
    1847    
     1847
    18481848    #define FILETRANSFER_INIT           -1 //Opt: LIST TYPE
    18491849    #define FILETRANSFER_CWD            0 //PWD
    18501850    #define FILETRANSFER_MKD            1
     
    19531953    //         +----------+
    19541954    //         |WAITFINISH|
    19551955    //         +----------+
    1956    
     1956
    19571957    ASSERT(!m_Operation.nOpMode || m_Operation.nOpMode&CSMODE_TRANSFER);
    19581958    if (!m_pOwner->IsConnected())
    19591959    {
     
    19721972        // APPE failed, ignore this reply
    19731973        if (m_Operation.nOpMode == FILETRANSFER_WAIT && bFinish)
    19741974            return;
    1975        
     1975
    19761976        if (!(m_Operation.nOpMode&CSMODE_TRANSFER))
    19771977            return;
    1978        
     1978
    19791979        if (nError)
    19801980        {
    19811981            if (m_Operation.nOpState == FILETRANSFER_LIST_LIST && nError & CSMODE_TRANSFERERROR)
     
    20052005                ResetOperation(FZ_REPLY_ERROR);
    20062006                return;
    20072007            }
    2008        
     2008
    20092009            int num=0;
    20102010            pData->pDirectoryListing=new t_directory;
    20112011            if (COptions::GetOptionVal(OPTION_DEBUGSHOWLISTING))
     
    20142014            pData->pDirectoryListing->num=num;
    20152015            if (m_pTransferSocket->m_pListResult->m_server.nServerType&FZ_SERVERTYPE_SUB_FTP_VMS && m_CurrentServer.nServerType&FZ_SERVERTYPE_FTP)
    20162016                m_CurrentServer.nServerType |= FZ_SERVERTYPE_SUB_FTP_VMS;
    2017             pData->pDirectoryListing->server = m_CurrentServer; 
     2017            pData->pDirectoryListing->server = m_CurrentServer;
    20182018            pData->pDirectoryListing->path.SetServer(m_CurrentServer);
    20192019            pData->pDirectoryListing->path = pData->transferfile.remotepath;
    20202020            if (pData->rawpwd!="")
     
    20312031            }
    20322032            else
    20332033                pData->pDirectoryListing->path=pData->transferfile.remotepath;
    2034            
     2034
    20352035            if (m_Operation.nOpState!=FILETRANSFER_LIST_WAITFINISH)
    20362036                return;
    20372037        }
     
    20692069        ASSERT(!m_Operation.pData);
    20702070
    20712071        CString str;
    2072         str.Format(transferfile->get?IDS_STATUSMSG_DOWNLOADSTART:IDS_STATUSMSG_UPLOADSTART, 
     2072        str.Format(transferfile->get?IDS_STATUSMSG_DOWNLOADSTART:IDS_STATUSMSG_UPLOADSTART,
    20732073                    transferfile->get ? transferfile->remotepath.AppendFilename(transferfile->remotefile) : transferfile->localfile);
    20742074        ShowStatus(str,0);
    2075        
     2075
    20762076        m_Operation.nOpMode=CSMODE_TRANSFER|(transferfile->get?CSMODE_DOWNLOAD:CSMODE_UPLOAD);
    20772077
    20782078        m_Operation.pData=new CFileTransferData;
     
    20982098        pData->transferdata.transferleft=pData->transferfile.size;
    20992099        pData->transferdata.bResume = FALSE;
    21002100        pData->transferdata.bType = (pData->transferfile.nType == 1) ? TRUE : FALSE;
    2101        
     2101
    21022102        CServerPath path;
    21032103        VERIFY (m_pOwner->GetCurrentPath(path));
    21042104        if (path==pData->transferfile.remotepath)
     
    21182118                        m_Operation.nOpState = NeedModeCommand() ? FILETRANSFER_LIST_MODE : (NeedOptsCommand() ? FILETRANSFER_LIST_OPTS : FILETRANSFER_LIST_TYPE);
    21192119                        break;
    21202120                    }
    2121                 }               
     2121                }
    21222122                if (m_pDirectoryListing && i==m_pDirectoryListing->num)
    21232123                {
    21242124                    nReplyError = CheckOverwriteFile();
     
    22362236                            if (res)
    22372237                                SetDirectoryListing(&dir);
    22382238                        }
    2239                            
     2239
    22402240                        pData->nMKDOpState=MKD_CHANGETOSUBDIR;
    22412241                        pData->MKDCurrent.AddSubdir(pData->MKDSegments.front());
    22422242                        CString Segment=pData->MKDSegments.front();
     
    22532253                            pData->MKDSegments.push_front(pData->MKDCurrent.GetLastSegment());
    22542254                            pData->MKDCurrent=pData->MKDCurrent.GetParent();
    22552255                            if (!Send("CWD "+pData->MKDCurrent.GetPath()))
    2256                                 return;     
     2256                                return;
    22572257                        }
    22582258                    }
    22592259                }
     
    23152315                                dir.path=path2;
    23162316                                dir.server=m_CurrentServer;
    23172317                            }
    2318                    
     2318
    23192319                            int i;
    23202320                            for (i=0; i<dir.num; i++)
    23212321                                if (dir.direntry[i].name == name)
     
    23662366                            pData->nMKDOpState=MKD_MAKESUBDIRS;
    23672367                        else
    23682368                            return;
    2369                     }       
     2369                    }
    23702370                }
    23712371                break;
    2372             default: 
     2372            default:
    23732373                ASSERT(FALSE);
    23742374            }
    2375            
     2375
    23762376            break;
    23772377        case FILETRANSFER_CWD2:
    23782378            if (GetReplyCode()!=2 && GetReplyCode()!=3)
     
    24012401                        nReplyError = FZ_REPLY_ERROR;
    24022402                        break;
    24032403                    }
    2404                    
     2404
    24052405                    pos2 = reply.Find(' ', pos1 + 1);
    24062406                    if (pos2 == -1)
    24072407                        pos2 = reply.GetLength();
     
    25042504                    nReplyError=FZ_REPLY_ERROR;
    25052505                break;
    25062506            }
    2507            
     2507
    25082508            if (pData->bPasv)
    25092509            {
    25102510                CString reply = GetReply();
     
    25222522                        nReplyError = FZ_REPLY_ERROR;
    25232523                    break;
    25242524                }
    2525                    
     2525
    25262526                CString temp;
    25272527                temp = reply.Mid(i+1,(j-i)-1);
    25282528
     
    25992599                    nReplyError = FZ_REPLY_ERROR;
    26002600                    break;
    26012601                }
    2602                
     2602
    26032603                VERIFY(m_pTransferSocket->AsyncSelect());
    26042604            }
    26052605            m_Operation.nOpState=FILETRANSFER_LIST_LIST;
     
    26352635                cache.Store(listing);
    26362636                cache.Unlock();
    26372637                SetDirectoryListing(&listing);
    2638                
     2638
    26392639                m_Operation.nOpState = FILETRANSFER_TYPE;
    26402640                delete m_pTransferSocket;
    26412641                m_pTransferSocket = 0;
    2642                
     2642
    26432643                nReplyError = CheckOverwriteFile();
    26442644                if (!nReplyError)
    26452645                {
     
    29132913                        break;
    29142914                    }
    29152915
    2916                     VERIFY(m_pTransferSocket->AsyncSelect());                   
     2916                    VERIFY(m_pTransferSocket->AsyncSelect());
    29172917                }
    29182918
    29192919                if (pData->transferdata.bResume && pData->transferfile.get)
     
    29472947                    nReplyError=FZ_REPLY_ERROR;
    29482948                    break;
    29492949                }
    2950                
     2950
    29512951                m_pTransferSocket->m_pFile = m_pDataFile;
    29522952                if (!pData->transferfile.get)
    29532953                {
     
    30183018                                    }
    30193019                                    END_CATCH_ALL;
    30203020                                }
    3021                                    
     3021
    30223022                                pData->transferdata.transfersize=m_pDirectoryListing->direntry[i].size;
    30233023                            }
    30243024                        }
     
    30653065                                return;
    30663066                            }
    30673067                        }
    3068                        
     3068
    30693069                        ShowStatus(IDS_ERRORMSG_CANTRESUME, 1);
    30703070                        pData->transferdata.transferleft=pData->transferdata.transfersize;
    30713071                        pData->transferdata.bResume=FALSE;
     
    30803080            // A '1xy opening data connection' reply is expected if RETR/STOR/APPE
    30813081            // is successful.
    30823082            // 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
    30843084            // connection if there's no data to send.
    30853085            if (GetReplyCode()==2)
    30863086            {
     
    31103110            else
    31113111            {
    31123112                m_Operation.nOpState=FILETRANSFER_WAITFINISH;
    3113                
     3113
    31143114                //Look if we can find any information about the resume offset
    31153115                if (!pData->transferfile.get && pData->transferdata.bResume)
    31163116                {
     
    31573157                }
    31583158                else if (pData->bPasv)
    31593159                    m_pTransferSocket->SetActive();
    3160                
     3160
    31613161            }
    31623162            break;
    31633163        case FILETRANSFER_WAITFINISH:
     
    31983198            break;
    31993199        }
    32003200        if (nReplyError)
    3201         { //Error transferring the file 
     3201        { //Error transferring the file
    32023202            ResetOperation(nReplyError);
    32033203            return;
    32043204        }
     
    32983298                    ShowStatus(IDS_ERRORMSG_CANTGETLIST,1);
    32993299                    bError=TRUE;
    33003300                }
    3301                 //Don't send PORT command yet, params are unknown. 
     3301                //Don't send PORT command yet, params are unknown.
    33023302                //will be sent in TransfersocketListenFinished
    33033303            }
    33043304            else
     
    33513351
    33523352                        host.Replace('.', ',');
    33533353                    }
    3354                    
     3354
    33553355                    if (!bError)
    33563356                    {
    33573357                        host.Format(host+",%d,%d", nPort/256, nPort%256);
     
    34223422                cmd += " -a";
    34233423            if(!Send(cmd))
    34243424                bError=TRUE;
    3425             else if(pData->bPasv) 
     3425            else if(pData->bPasv)
    34263426            {
    34273427                // if PASV create the socket & initiate outbound data channel connection
    34283428                if (!m_pTransferSocket->Connect(pData->host,pData->port))
     
    34483448            }
    34493449            else
    34503450                command += pData->transferfile.remotepath.AppendFilename(pData->transferfile.remotefile);
    3451        
     3451
    34523452            if (!Send(command))
    34533453                bError=TRUE;
    34543454        }
     
    34653465            }
    34663466            else
    34673467                command += pData->transferfile.remotepath.AppendFilename(pData->transferfile.remotefile);
    3468        
     3468
    34693469            if (!Send(command))
    34703470                bError=TRUE;
    34713471        }
     
    35393539                    ShowStatus(IDS_ERRORMSG_CANTGETLIST,1);
    35403540                    bError=TRUE;
    35413541                }
    3542                 //Don't send PORT command yet, params are unknown. 
     3542                //Don't send PORT command yet, params are unknown.
    35433543                //will be sent in TransfersocketListenFinished
    35443544            }
    35453545            else
    35463546            {
    35473547                //Set up an active file transfer
    3548                
     3548
    35493549                CString temp;
    35503550                UINT nPort;
    35513551                if (//create listen socket (let Windows choose the port) & start listening
     
    35893589
    35903590                        host.Replace('.', ',');
    35913591                    }
    3592                    
     3592
    35933593                    if (!bError)
    35943594                    {
    35953595                        host.Format(host+",%d,%d", nPort/256, nPort%256);
     
    36813681            bError = TRUE;
    36823682        else
    36833683        {
    3684             if (pData->bPasv) 
     3684            if (pData->bPasv)
    36853685            {// if PASV create the socket & initiate outbound data channel connection
    36863686                if (!m_pTransferSocket->Connect(pData->host,pData->port))
    36873687                {
     
    36933693        break;
    36943694    }
    36953695    if (bError)
    3696     { //Error transferring the file 
     3696    { //Error transferring the file
    36973697        ResetOperation(FZ_REPLY_ERROR);
    36983698        return;
    36993699    }
    3700 }       
     3700}
    37013701
    37023702void CFtpControlSocket::Cancel(BOOL bQuit/*=FALSE*/)
    37033703{
    37043704    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
    37063706    const int nOpMode = m_Operation.nOpMode;
    37073707    if (nOpMode==CSMODE_CONNECT)
    37083708        DoClose(FZ_REPLY_CANCEL);
     
    37203720    }
    37213721    else if (nOpMode != CSMODE_NONE)
    37223722        ResetOperation(FZ_REPLY_ERROR | FZ_REPLY_CANCEL);
    3723        
     3723
    37243724    if (nOpMode != CSMODE_NONE && !bQuit)
    37253725        ShowStatus(IDS_ERRORMSG_INTERRUPTED, 1);
    37263726
     
    37993799    if (m_pDataFile)
    38003800        delete m_pDataFile;
    38013801    m_pDataFile=0;
    3802    
     3802
    38033803    if (m_Operation.nOpMode)
    3804     {   
     3804    {
    38053805        //Unset busy attribute so that new commands can be executed
    38063806        m_pOwner->SetBusy(FALSE);
    3807        
     3807
    38083808        if (m_Operation.nOpMode&CSMODE_CONNECT && nSuccessful&FZ_REPLY_ERROR)
    38093809        {
    38103810            nSuccessful|=FZ_REPLY_DISCONNECTED;
    38113811            ShowStatus(IDS_ERRORMSG_CANTCONNECT, 1);
    38123812        }
    3813        
     3813
    38143814        if (m_Operation.nOpMode & (CSMODE_LIST|CSMODE_TRANSFER) && nSuccessful==FZ_REPLY_OK)
    38153815            m_LastSendTime=CTime::GetCurrentTime();
    3816    
     3816
    38173817        //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) &&
    38213821            m_pDirectoryListing &&
    38223822            m_Operation.nOpState>=FILETRANSFER_RETRSTOR)
    38233823        {
     
    38833883                        entries[i].bUnsure=FALSE;
    38843884                    else
    38853885                        entries[i].bUnsure=TRUE;
    3886                    
     3886
    38873887                    delete [] dir.direntry;
    38883888                    dir.direntry=entries;
    38893889                    dir.num++;
     
    39043904            }
    39053905            cache.Unlock();
    39063906        }
    3907        
     3907
    39083908        if (m_Operation.pData && nSuccessful&FZ_REPLY_ERROR)
    39093909        {
    39103910            if (m_Operation.nOpMode&CSMODE_TRANSFER)
     
    39263926        if (!nSuccessful)
    39273927            ASSERT(FALSE);
    39283928    }
    3929    
     3929
    39303930    if (nSuccessful&FZ_REPLY_DISCONNECTED)
    39313931        m_pOwner->SetWorkingDir(0); //Disconnected, reset working dir
    3932    
     3932
    39333933    if (m_Operation.nOpMode)
    39343934        PostMessage(m_pOwner->m_hOwnerWnd, m_pOwner->m_nReplyMessageID, FZ_MSG_MAKEMSG(FZ_MSG_REPLY, m_pOwner->m_LastCommand.id), nSuccessful);
    39353935    else
     
    39463946void CFtpControlSocket::Delete(CString filename, const CServerPath &path)
    39473947{
    39483948    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
    39503950    class CDeleteData : public CFtpControlSocket::t_operation::COpData
    39513951    {
    39523952public:
     
    40544054void CFtpControlSocket::RemoveDir(CString dirname, const CServerPath &path)
    40554055{
    40564056    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
    40584058    class CRemoveDirData : public CFtpControlSocket::t_operation::COpData
    40594059    {
    40604060public:
     
    41754175        return FZ_REPLY_ERROR;
    41764176
    41774177    CFileTransferData *pData = reinterpret_cast<CFileTransferData *>(m_Operation.pData);
    4178    
     4178
    41794179    int nReplyError = 0;
    41804180    CFileStatus64 status;
    41814181    BOOL res = GetStatus64(pData->transferfile.localfile, status);
     
    41894189        if (status.m_attribute & 0x10)
    41904190            nReplyError = FZ_REPLY_CRITICALERROR; //Can't transfer to/from dirs
    41914191        else
    4192         {           
     4192        {
    41934193            _int64 localsize;
    41944194            if (!GetLength64(pData->transferfile.localfile, localsize))
    41954195                if (!pData->transferfile.get)
     
    41974197                else
    41984198                    m_Operation.nOpState = FILETRANSFER_TYPE;
    41994199
    4200            
     4200
    42014201            CTime *localtime = NULL;
    42024202            TRY
    42034203            {
     
    42674267                *remotetime = *pData->pFileTime;
    42684268                bRemoteFileExists = TRUE;
    42694269            }
    4270            
     4270
    42714271            if (bRemoteFileExists || pData->transferfile.get )
    42724272            {
    42734273                COverwriteRequestData *pOverwriteData = new COverwriteRequestData;
     
    42984298                    pOverwriteData->size1 = remotesize;
    42994299                    pOverwriteData->size2 = localsize;
    43004300                    pOverwriteData->time1 = remotetime;
    4301                     pOverwriteData->time2 = localtime;                             
     4301                    pOverwriteData->time2 = localtime;
    43024302                }
    43034303                pOverwriteData->nRequestID = m_pOwner->GetNextAsyncRequestID();
    43044304                if (!PostMessage(m_pOwner->m_hOwnerWnd, m_pOwner->m_nReplyMessageID, FZ_MSG_MAKEMSG(FZ_MSG_ASYNCREQUEST, FZ_ASYNCREQUEST_OVERWRITE), (LPARAM)pOverwriteData))
     
    43734373                for (int i = (pos+1); i < pTransferData->transferfile.localfile.GetLength(); i++)
    43744374                    if (pTransferData->transferfile.localfile[i] == ':')
    43754375                        pTransferData->transferfile.localfile.SetAt(i, '_');
    4376                    
     4376
    43774377                pTransferData->nWaitNextOpState=  FILETRANSFER_TYPE;
    4378             }                       
     4378            }
    43794379        }
    43804380        else
    43814381        {
     
    44294429    //Directory creation works like this:
    44304430    //Find existing parent and create subdirs one by one
    44314431    LogMessage(__FILE__, __LINE__, this, FZ_LOG_DEBUG, _T("MakeDir(\"%s\")  OpMode=%d OpState=%d"), path.GetPath(), m_Operation.nOpMode, m_Operation.nOpState);
    4432    
     4432
    44334433    if (m_Operation.nOpState == MKD_INIT)
    44344434    {
    44354435        ASSERT(!path.IsEmpty());
     
    44744474                pData->Segments.push_front(pData->Current.GetLastSegment());
    44754475                pData->Current=pData->Current.GetParent();
    44764476                if (!Send("CWD "+pData->Current.GetPath()))
    4477                     return;     
     4477                    return;
    44784478            }
    44794479        }
    44804480    }
     
    44884488            ASSERT(!pData->Segments.empty());
    44894489
    44904490            m_pOwner->SetCurrentPath(pData->Current);
    4491            
     4491
    44924492            pData->Current.AddSubdir(pData->Segments.front());
    44934493            CString Segment=pData->Segments.front();
    44944494            pData->Segments.pop_front();
     
    45794579                            m_pOwner->SetWorkingDir(&dir);
    45804580                        }
    45814581                }
    4582                
     4582
    45834583                cache.Unlock();
    45844584            }
    45854585        }
     
    45934593                m_Operation.nOpState=MKD_MAKESUBDIRS;
    45944594            else
    45954595                return;
    4596         }               
     4596        }
    45974597    }
    4598     else 
     4598    else
    45994599        ASSERT(FALSE);
    46004600}
    46014601
     
    46364636        ASSERT(m_Operation.nOpMode == CSMODE_RENAME);
    46374637        ASSERT(m_Operation.pData);
    46384638        CRenameData *pData = reinterpret_cast<CRenameData *>(m_Operation.pData);
    4639        
     4639
    46404640        if (m_Operation.nOpState == -1)
    46414641        {
    46424642            int res = GetReplyCode();
     
    46614661            if (res == 2 || res == 3)
    46624662            { //Rename entry in cached directory
    46634663                CRenameData *pData = reinterpret_cast<CRenameData *>(m_Operation.pData);
    4664                
     4664
    46654665                CDirectoryCache cache;
    46664666
    46674667                cache.Lock();
    4668                
     4668
    46694669                //Rename all references to the directory in the cache
    46704670                if (pData->newPath.IsEmpty())
    46714671                    cache.Rename(pData->path, pData->oldName, pData->newName, m_CurrentServer);
    4672                
     4672
    46734673                BOOL bCached = TRUE;
    46744674                t_directory dir;
    46754675                BOOL res = cache.Lookup(pData->path, m_CurrentServer, dir);
     
    47284728                                dir.num--;
    47294729
    47304730                                cache.Store(dir, bCached);
    4731                                
     4731
    47324732                                // If directory, delete old directory from cache
    47334733                                t_directory olddir;
    47344734                                res = cache.Lookup(pData->path, pData->oldName, m_CurrentServer, olddir);
     
    47524752                                        updated = TRUE;
    47534753                                        m_pOwner->SetWorkingDir(&dir);
    47544754                                    }
    4755                                                                    
     4755
    47564756                                BOOL bCached = TRUE;
    47574757                                BOOL res = cache.Lookup(pData->newPath, m_CurrentServer, dir);
    47584758                                if (!res)
     
    47854785                                    dir.num++;
    47864786                                    delete [] dir.direntry;
    47874787                                    dir.direntry = direntry;
    4788                                    
     4788
    47894789                                    cache.Store(dir, bCached);
    47904790                                    BOOL updated = FALSE;
    47914791                                    if (m_pDirectoryListing && m_pDirectoryListing->path == dir.path)
     
    48364836            //Getting intervals for the Keep Alive feature
    48374837            int low=COptions::GetOptionVal(OPTION_INTERVALLOW);
    48384838            int diff=COptions::GetOptionVal(OPTION_INTERVALHIGH)-low;
    4839            
     4839
    48404840            //Choose a new delay
    48414841            static int delay=low+(rand()*diff)/RAND_MAX;
    4842            
     4842
    48434843            CTimeSpan span=CTime::GetCurrentTime()-m_LastSendTime;
    48444844            if (span.GetTotalSeconds()>=delay)
    48454845                SendKeepAliveCommand();
     
    48764876        if (!m_RecvBuffer.empty() && m_RecvBuffer.front() != "")
    48774877        {
    48784878            DoClose();
    4879             break; 
     4879            break;
    48804880        }
    48814881        if (!nAction)
    48824882        {
     
    48944894        if (!m_RecvBuffer.empty() && m_RecvBuffer.front() != "")
    48954895        {
    48964896            DoClose();
    4897             break; 
     4897            break;
    48984898        }
    48994899        if (!nAction)
    49004900        {
     
    49164916        if (!m_RecvBuffer.empty() && m_RecvBuffer.front() != "")
    49174917        {
    49184918            DoClose();
    4919             break; 
     4919            break;
    49204920        }
    49214921        if (!nAction)
    49224922        {
     
    51815181            if (m_RecvBuffer.empty())
    51825182                m_RecvBuffer.push_back("");
    51835183            return "";
    5184         }           
     5184        }
    51855185        else
    51865186        {
    51875187            LPWSTR p1 = new WCHAR[len + 1];
  • source/MainFrm.cpp

    RCS file: /cvsroot/filezilla/FileZilla/source/MainFrm.cpp,v
    retrieving revision 1.195
    diff -u -r1.195 MainFrm.cpp
     
    221221
    222222CMainFrame::CMainFrame()
    223223{
    224     nTrayNotificationMsg_ = RegisterWindowMessage( _T("FileZilla Tray Notification Message") ); 
     224    nTrayNotificationMsg_ = RegisterWindowMessage( _T("FileZilla Tray Notification Message") );
    225225    initialized = FALSE;
    226226    m_nTransferType = COptions::GetOptionVal(OPTION_TRANSFERMODE);
    227227    m_nLocalListViewStyle = m_nRemoteListViewStyle = 0;
     
    236236
    237237    m_pLocalViewHeader = NULL;
    238238    m_pRemoteViewHeader = NULL;
    239    
     239
    240240    m_pWndReBar = NULL;
    241241    m_pWndDlgBar = NULL;
    242242    m_pWndToolBar = NULL;
    243    
     243
    244244    m_pMinTrayBtn = NULL;
    245245
    246246    m_nLocalTreeViewLocation = COptions::GetOptionVal(OPTION_LOCALTREEVIEWLOCATION);
     
    281281        return -1;
    282282
    283283    SetupTrayIcon();
    284    
     284
    285285    SetWindowText(GetVersionString());
    286    
     286
    287287    if (!CreateToolbars())
    288288        return -1;
    289289
     
    327327                }
    328328                else if (server.port!=21)
    329329                    tmp.Format(_T("%d"), server.port);
    330                
     330
    331331                if (tmp!="")
    332332                    str+=_T(":")+tmp;
    333                
     333
    334334                if (!m_RecentQuickconnectServers.size())
    335335                    m_wndQuickconnectButton.AddMenuItem(0, MF_SEPARATOR);
    336336                m_RecentQuickconnectServers.push_front(server);
     
    373373                    }
    374374                    else if (server.port!=21)
    375375                        tmp.Format(_T("%d"), server.port);
    376                
     376
    377377                    if (tmp!="")
    378378                        str+=_T(":")+tmp;
    379                
     379
    380380                    if (!m_RecentQuickconnectServers.size())
    381381                        m_wndQuickconnectButton.AddMenuItem(0, MF_SEPARATOR);
    382382                    m_RecentQuickconnectServers.push_front(server);
     
    392392            }
    393393        }
    394394    }
    395    
     395
    396396    if (!m_wndStatusBar.Create(this) ||
    397397        !m_wndStatusBar.SetIndicators(indicators,
    398398          sizeof(indicators)/sizeof(UINT)))
     
    402402    }
    403403
    404404    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);
    406406
    407407    //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));
    409409    m_ProgressCtrl.SetRange(0,100); //Set the range to between 0 and 100
    410410    m_ProgressCtrl.SetStep(1); // Set the step amount
    411411    m_ProgressCtrl.ShowWindow(SW_HIDE);
    412412
    413     m_wndStatusBar.GetItemRect(m_wndStatusBar.CommandToIndex(ID_INDICATOR_RECVLED), &MyRect); 
     413    m_wndStatusBar.GetItemRect(m_wndStatusBar.CommandToIndex(ID_INDICATOR_RECVLED), &MyRect);
    414414
    415415    RECT rc;
    416416    m_wndStatusBar.GetItemRect(m_wndStatusBar.CommandToIndex(ID_INDICATOR_PROGRESS_PANE), &rc);
     
    420420    m_ProgressCtrl.SetShowText(TRUE);
    421421
    422422    //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));
    424424    m_RecvLed.SetLed( CLed::LED_COLOR_GREEN, CLed::LED_OFF, CLed::LED_ROUND);
    425425
    426    
     426
    427427    m_wndStatusBar.GetItemRect(m_wndStatusBar.CommandToIndex(ID_INDICATOR_RECVLED), &rc);
    428428    // Reposition the first LED correctly!
    429429    m_RecvLed.SetWindowPos(&wndTop, rc.left, rc.top, rc.right - rc.left,
    430430        rc.bottom - rc.top, 0);
    431431
    432432    //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));
    434434    m_SendLed.SetLed( CLed::LED_COLOR_RED, CLed::LED_OFF, CLed::LED_ROUND);
    435435
    436    
     436
    437437    m_wndStatusBar.GetItemRect(m_wndStatusBar.CommandToIndex(ID_INDICATOR_SENDLED), &rc);
    438438    // Reposition the second LED correctly!
    439439    m_SendLed.SetWindowPos(&wndTop, rc.left, rc.top, rc.right - rc.left,
    440440        rc.bottom - rc.top, 0);
    441441
    442    
     442
    443443    m_wndStatusBar.SetPaneInfo(0,m_wndStatusBar.GetItemID(0),SBPS_STRETCH|SBPS_NOBORDERS,200);
    444444    m_wndStatusBar.SetPaneInfo(m_wndStatusBar.CommandToIndex(ID_INDICATOR_PROGRESS_PANE),ID_INDICATOR_PROGRESS_PANE,SBPS_NORMAL,100);
    445445
     
    457457    m_bShowHiddenFiles=COptions::GetOptionVal(OPTION_ALWAYSSHOWHIDDEN);
    458458    if (m_pFileZillaApi)
    459459        m_pFileZillaApi->SetOption(FZAPI_OPTION_SHOWHIDDEN, m_bShowHiddenFiles);
    460    
     460
    461461    m_pCommandQueue=new CCommandQueue(m_pFileZillaApi);
    462    
     462
    463463    m_bShowTree=TRUE;
    464464    m_bShowRemoteTree=TRUE;
    465465    m_bShowQueue=1;
     
    495495            m_wndLocalSplitter.RecalcLayout();
    496496        }
    497497    }
    498    
     498
    499499    if (!m_nRemoteTreeViewLocation)
    500500    {
    501501        m_wndRemoteSplitter.GetRowInfo(1, s2, temp);
     
    520520    //Load the icon which indicates secure sites
    521521    m_pSecureIconCtrl->Create(_T(""), WS_CHILD|SS_ICON,CRect(0,0,16,16),&m_wndStatusBar,m_wndStatusBar.CommandToIndex(ID_INDICATOR_SECURESERVER));
    522522    m_pSecureIconCtrl->SetIcon( ::LoadIcon(AfxGetInstanceHandle(), MAKEINTRESOURCE(IDI_SECURE)));
    523    
     523
    524524
    525525    int cx,cx2;
    526526    m_wndMainSplitter.GetColumnInfo(0,cx,temp);
     
    544544        OnShowremotetree();
    545545    if (COptions::GetOptionVal(OPTION_SHOWNOQUEUE))
    546546        OnShowqueue();
    547        
     547
    548548    m_nSecTimerID=SetTimer(1, 1000, 0);
    549        
     549
    550550    CString folder=COptions::GetOption(OPTION_DEFAULTFOLDER);
    551551    CFileStatus64 status;
    552552    if (folder!="")
     
    558558        folder+="\\";
    559559    }
    560560    SetLocalFolder(folder);
    561    
     561
    562562    if (COptions::GetOptionVal(OPTION_ENABLEDEBUGMENU))
    563563    {
    564564        CMenu *pMenu=GetMenu();
     
    659659        TRACE0("Failed to create nested splitter\n");
    660660        return FALSE;
    661661    }
    662    
     662
    663663    // add the second splitter pane - which is a nested splitter with 2 rows
    664664    numrows = 2 - m_nRemoteTreeViewLocation;
    665665    numcols = 1 + m_nRemoteTreeViewLocation;
     
    682682    m_pLocalViewHeader->m_pEdit = new CLocalComboCompletion;
    683683    m_pLocalViewHeader->m_pEdit->Create(CBS_AUTOHSCROLL|WS_CHILD|WS_VISIBLE|WS_VSCROLL|CBS_DROPDOWN|CBS_SORT, CRect(0,0,100,200), this, 0);
    684684    m_pLocalViewHeader->m_pEdit->InitStorage(10,1000);
    685    
     685
    686686    HFONT hFont = ( HFONT )GetStockObject(DEFAULT_GUI_FONT);
    687687    CFont *font=CFont::FromHandle(hFont);
    688688    m_pLocalViewHeader->m_pEdit->SetFont(font);
    689689
    690690    m_pLocalViewHeader->m_pLabelBackground=new CStatic;
    691691    m_pLocalViewHeader->m_pLabelBackground->Create(_T(""), WS_CHILD|WS_VISIBLE, CRect(1, 1, 0, 0), this);
    692        
     692
    693693    CString str;
    694694    str.LoadString(IDS_VIEWLABEL_LOCAL);
    695695    str="  " + str + " ";
     
    698698    m_pLocalViewHeader->m_pLabel->SetFont(font);
    699699    m_pLocalViewHeader->m_LabelTextSize.cx=m_pLocalViewHeader->m_LabelTextSize.cy=-1;
    700700    CDC *pDC=m_pLocalViewHeader->m_pLabel->GetDC();
    701    
     701
    702702    CFont *pOldFont=pDC->SelectObject(font);
    703703    GetTextExtentPoint32( pDC->GetSafeHdc(), str, str.GetLength(), &m_pLocalViewHeader->m_LabelTextSize );
    704704    pDC->SelectObject(pOldFont);
    705    
     705
    706706    m_pLocalViewHeader->m_pLabel->ReleaseDC(pDC);
    707        
     707
    708708    //Create the remote view header
    709709    m_pRemoteViewHeader=new t_RemoteViewHeader;
    710710    memset(m_pRemoteViewHeader, 0, sizeof(t_RemoteViewHeader));
     
    719719
    720720    m_pRemoteViewHeader->m_pLabelBackground=new CStatic;
    721721    m_pRemoteViewHeader->m_pLabelBackground->Create(_T(""),WS_CHILD|WS_VISIBLE,CRect(1, 1, 0, 0), this);
    722        
     722
    723723    str.LoadString(IDS_VIEWLABEL_REMOTE);
    724724    str="  " + str + " ";
    725725    m_pRemoteViewHeader->m_pLabel=new CStatic;
     
    727727    m_pRemoteViewHeader->m_pLabel->SetFont(font);
    728728    m_pRemoteViewHeader->m_LabelTextSize.cx=m_pRemoteViewHeader->m_LabelTextSize.cy=-1;
    729729    pDC=m_pRemoteViewHeader->m_pLabel->GetDC();
    730    
     730
    731731    pOldFont=pDC->SelectObject(font);
    732732    GetTextExtentPoint32( pDC->GetSafeHdc(), str, str.GetLength(), &m_pRemoteViewHeader->m_LabelTextSize );
    733733    pDC->SelectObject(pOldFont);
    734    
     734
    735735    m_pRemoteViewHeader->m_pLabel->ReleaseDC(pDC);
    736    
     736
    737737    // now create the two views inside the nested splitter
    738    
     738
    739739    if (!m_wndLocalSplitter.CreateView(0, 0,
    740740        RUNTIME_CLASS(CLocalView), CSize(300, 145), pContext))
    741741    {
    742742        TRACE0("Failed to create third pane\n");
    743743        return FALSE;
    744744    }
    745    
     745
    746746    int row = 1 - m_nLocalTreeViewLocation;
    747747    int col = m_nLocalTreeViewLocation;
    748748    if (!m_wndLocalSplitter.CreateView(row, col,
     
    753753    }
    754754
    755755
    756    
     756
    757757    //Now create the ftp view
    758758
    759759    if (!m_wndRemoteSplitter.CreateView(0, 0,
     
    774774
    775775    GetLocalPane()->m_pOwner=this;
    776776    GetLocalPane2()->m_pOwner=this;
    777        
     777
    778778    initialized=1;
    779    
     779
    780780    PostMessage(WM_FILEZILLA_PROCESSCMDLINE);
    781781
    782782    m_nLocalListViewStyle=COptions::GetOptionVal(OPTION_LOCALLISTVIEWSTYLE);
    783783    m_nRemoteListViewStyle=COptions::GetOptionVal(OPTION_REMOTELISTVIEWSTYLE);
    784784    GetFtpPane()->m_pListCtrl->SetListStyle(m_nRemoteListViewStyle);
    785     GetLocalPane2()->m_pListCtrl->SetListStyle(m_nLocalListViewStyle); 
     785    GetLocalPane2()->m_pListCtrl->SetListStyle(m_nLocalListViewStyle);
    786786    m_nHideLocalColumns=COptions::GetOptionVal(OPTION_HIDELOCALCOLUMNS);
    787787    GetLocalPane2()->m_pListCtrl->UpdateColumns(m_nHideLocalColumns);
    788788    m_nHideRemoteColumns=COptions::GetOptionVal(OPTION_HIDEREMOTECOLUMNS);
     
    793793
    794794//////////////////
    795795// 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.
    797797// Returns new name if successful; otherwise NULL.
    798798//
    799799static LPCTSTR RegisterSimilarClass(LPCTSTR lpszNewClassName,
     
    821821
    822822// Static class member holds window class name
    823823// (NULL if not registered yet).
    824 // 
     824//
    825825LPCTSTR CMainFrame::s_winClassName = NULL;
    826826
    827827BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
    828828{
    829829    if( !CFrameWnd::PreCreateWindow(cs) )
    830830        return FALSE;
    831    
     831
    832832    cs.lpszClass = AfxRegisterWndClass(0);
    833    
     833
    834834    //Change the window class name
    835     if (s_winClassName==NULL) 
     835    if (s_winClassName==NULL)
    836836    {
    837837        // One-time initialization: register the class
    838838        //
    839         s_winClassName = RegisterSimilarClass(_T("FileZilla Main Window"), 
     839        s_winClassName = RegisterSimilarClass(_T("FileZilla Main Window"),
    840840                        cs.lpszClass, IDR_MAINFRAME);
    841841        if (!s_winClassName)
    842842            return FALSE;
     
    865865/////////////////////////////////////////////////////////////////////////////
    866866// CMainFrame Nachrichten-Handler
    867867
    868 void CMainFrame::OnQuickConnect() 
     868void CMainFrame::OnQuickConnect()
    869869{
    870870    ProcessQuickconnect(FALSE);
    871871}
     
    966966    }
    967967}
    968968
    969 void CMainFrame::OnSize(UINT nType, int cx, int cy) 
     969void CMainFrame::OnSize(UINT nType, int cx, int cy)
    970970{
    971971    if (m_wndStatusBar.GetSafeHwnd())
    972972    {
     
    10001000
    10011001        // Reposition the progress control correctly!
    10021002        m_ProgressCtrl.SetWindowPos(&wndTop, rc.left, rc.top, rc.right - rc.left,
    1003             rc.bottom - rc.top, 0); 
     1003            rc.bottom - rc.top, 0);
    10041004
    10051005        m_wndStatusBar.GetItemRect(m_wndStatusBar.CommandToIndex(ID_INDICATOR_RECVLED), &rc);
    10061006
    10071007        // Reposition the first LED correctly!
    10081008        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);
    10101010
    10111011        m_wndStatusBar.GetItemRect(m_wndStatusBar.CommandToIndex(ID_INDICATOR_SENDLED), &rc);
    1012    
     1012
    10131013        // Reposition the second LED correctly!
    10141014        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
    10171017        if (m_pSecureIconCtrl)
    10181018        {
    10191019            m_wndStatusBar.GetItemRect(m_wndStatusBar.CommandToIndex(ID_INDICATOR_SECURESERVER), &rc);
    10201020            rc.left=rc.right-16;
    1021            
     1021
    10221022            m_pSecureIconCtrl->MoveWindow(&rc);
    10231023        }
    10241024    }
    1025    
     1025
    10261026}
    10271027
    10281028void CMainFrame::SetStatusbarText(int nIndex,CString str)
     
    10301030    m_wndStatusBar.GetStatusBarCtrl().SetText(str,nIndex,0);
    10311031    HFONT hFont = (HFONT)m_wndStatusBar.SendMessage(WM_GETFONT);
    10321032    if (str=="")
    1033         str.LoadString(m_wndStatusBar.GetItemID(nIndex));       
     1033        str.LoadString(m_wndStatusBar.GetItemID(nIndex));
    10341034    CClientDC dcScreen(NULL);
    10351035    HGDIOBJ hOldFont = NULL;
    10361036    if (hFont != NULL)
     
    10441044        //m_wndStatusBar.SetPaneInfo(nIndex,nID,nStyle,cx);
    10451045        RECT rc;
    10461046        m_wndStatusBar.GetItemRect(m_wndStatusBar.CommandToIndex(ID_INDICATOR_PROGRESS_PANE), &rc);
    1047    
     1047
    10481048        // Reposition the progress control correctly!
    10491049        m_ProgressCtrl.SetWindowPos(&wndTop, rc.left, rc.top, rc.right - rc.left,
    1050             rc.bottom - rc.top, 0); 
     1050            rc.bottom - rc.top, 0);
    10511051    }
    10521052    if (hOldFont != NULL)
    10531053        dcScreen.SelectObject(hOldFont);
     
    10711071        str2.Format(_T("%d:%02d:%02d"), status->timeelapsed/3600, (status->timeelapsed/60)%60, status->timeelapsed%60);
    10721072        str.Format(IDS_STATUSBAR_ELAPSED,str2);
    10731073        SetStatusbarText(m_wndStatusBar.CommandToIndex(ID_INDICATOR_ELAPSEDTIME),str);
    1074        
     1074
    10751075        if (status->timeleft!=-1)
    10761076        {
    10771077            str2.Format(_T("%d:%02d:%02d"), status->timeleft/3600, (status->timeleft/60)%60, status->timeleft%60);
    10781078            str.Format(IDS_STATUSBAR_LEFT,str2);
    1079             SetStatusbarText(m_wndStatusBar.CommandToIndex(ID_INDICATOR_TIMELEFT),str);         
     1079            SetStatusbarText(m_wndStatusBar.CommandToIndex(ID_INDICATOR_TIMELEFT),str);
    10801080        }
    10811081        else
    10821082            SetStatusbarText(m_wndStatusBar.CommandToIndex(ID_INDICATOR_TIMELEFT),"");
     
    11441144    }
    11451145    else
    11461146        transferfile.nType = m_nTransferType;
    1147    
     1147
    11481148    localdir.TrimRight( _T("\\") );
    11491149    if (!nOpen)
    11501150    {
     
    11861186            transferfile.remotepath = ((CFtpListCtrl *)GetFtpPane()->GetListCtrl())->GetCurrentDirectory();
    11871187        transferfile.remotepath.AddSubdirs(subdir);
    11881188    }
    1189    
     1189
    11901190    transferfile.get = get;
    11911191    if (GetFtpPane()->GetTransferfile(transferfile))
    11921192    {
     
    11941194        {
    11951195            CFileStatus64 status;
    11961196            BOOL res = GetStatus64(transferfile.localfile, status);
    1197    
     1197
    11981198            if (!GetLength64(transferfile.localfile, transferfile.size))
    11991199                return;
    12001200        }
     
    12331233    }
    12341234}
    12351235
    1236 void CMainFrame::OnUpdateShowtree(CCmdUI* pCmdUI) 
     1236void CMainFrame::OnUpdateShowtree(CCmdUI* pCmdUI)
    12371237{
    12381238    pCmdUI->SetCheck(m_bShowTree);
    12391239}
    12401240
    1241 void CMainFrame::OnShowtree() 
     1241void CMainFrame::OnShowtree()
    12421242{
    12431243    if (!m_bShowTree)
    12441244    {
     
    12471247            m_wndLocalSplitter.ShowCol(0);
    12481248        else
    12491249            m_wndLocalSplitter.ShowRow(0);
    1250        
     1250
    12511251        m_bShowTree=TRUE;
    12521252        m_pLocalViewHeader->bTreeHidden=FALSE;
    12531253    }
     
    12641264    GetLocalPane2()->UpdateViewHeader();
    12651265}
    12661266
    1267 void CMainFrame::OnEditSettings() 
     1267void CMainFrame::OnEditSettings()
    12681268{
    12691269    if (COptions::GetOptionVal(OPTION_REMEMBERVIEWS))
    12701270    {
     
    13201320    m_nHideRemoteColumns=COptions::GetOptionVal(OPTION_HIDEREMOTECOLUMNS);
    13211321    GetFtpPane()->m_pListCtrl->UpdateColumns(m_nHideRemoteColumns);
    13221322    GetFtpPane()->EnableStatusbar(COptions::GetOptionVal(OPTION_SHOWREMOTESTATUSBAR));
    1323    
    1324    
     1323
     1324
    13251325    if (m_bShowTree)
    13261326        GetLocalPane()->UpdateViewHeader();
    13271327    GetLocalPane2()->UpdateViewHeader();
    1328    
     1328
    13291329    if (m_bShowRemoteTree)
    13301330        GetFtpTreePane()->UpdateViewHeader();
    13311331    GetFtpPane()->UpdateViewHeader();
    1332    
     1332
    13331333    CMenu *menu2=GetMenu();
    13341334    CMenu *pMenu=new CMenu;
    13351335    if (menu2->m_hMenu!=m_hMenuDefault)
     
    13791379            pMenu->RemoveMenu(ID_MENU_DEBUG, MF_BYCOMMAND);
    13801380        }
    13811381    }
    1382    
     1382
    13831383    SetMenu(pMenu);
    1384    
     1384
    13851385    CString str;
    1386    
     1386
    13871387    m_wndQuickconnectButton.ShowWindow(SW_HIDE);
    13881388    m_wndQuickconnectButton.SetParent(this);
    13891389    delete m_pWndReBar;
     
    13911391    delete m_pWndToolBar;
    13921392    VERIFY(CreateToolbars());
    13931393    m_wndQuickconnectButton.SetParent(m_pWndDlgBar);
    1394    
     1394
    13951395    m_wndQuickconnectButton.SetDlgCtrlID(IDCANCEL);
    13961396    CString title = "Quick&connect";
    1397    
     1397
    13981398    CWnd *pDlgItem = m_pWndDlgBar->GetDlgItem(IDOK);
    13991399    if (pDlgItem)
    14001400        pDlgItem->GetWindowText(title);
     
    14071407    m_wndQuickconnectButton.MoveWindow(rect);
    14081408    m_wndQuickconnectButton.SetDlgCtrlID(IDOK);
    14091409    m_wndQuickconnectButton.ShowWindow(SW_SHOW);
    1410    
     1410
    14111411    VERIFY(m_wndQuickconnectButton.RemoveMenuItem(1));
    14121412    VERIFY(m_wndQuickconnectButton.RemoveMenuItem(0));
    14131413    VERIFY(m_wndQuickconnectButton.InsertMenuItem(0, ID_QUICKCONNECTBAR_MENU_BYPASS, 0));
     
    14971497        CFileExistsDlg::SetOverwriteSettings(COptions::GetOptionVal(OPTION_FILEEXISTSACTION) - 1);
    14981498}
    14991499
    1500 void CMainFrame::OnSitemanager() 
     1500void CMainFrame::OnSitemanager()
    15011501{
    15021502    CSiteManager dlg;
    15031503    int res = dlg.DoModal();
     
    15051505        ParseSite(dlg.m_LastSite);
    15061506}
    15071507
    1508 void CMainFrame::OnCancel() 
     1508void CMainFrame::OnCancel()
    15091509{
    15101510    int res=AfxMessageBox(IDS_QUESTION_CANCELOPERATION,MB_YESNO|MB_ICONQUESTION);
    15111511    if (res==IDYES)
    15121512        m_pCommandQueue->Cancel();
    15131513}
    15141514
    1515 void CMainFrame::OnUpdateCancelbutton(CCmdUI* pCmdUI) 
     1515void CMainFrame::OnUpdateCancelbutton(CCmdUI* pCmdUI)
    15161516{
    15171517    pCmdUI->Enable(m_pCommandQueue->IsBusy());
    15181518}
    15191519
    1520 void CMainFrame::OnShowqueue() 
     1520void CMainFrame::OnShowqueue()
    15211521{
    15221522    if (!m_bShowQueue)
    15231523    {
    15241524        m_bShowQueue=TRUE;
    1525         m_wndVertSplitter.ShowRow(2);       
     1525        m_wndVertSplitter.ShowRow(2);
    15261526    }
    15271527    else
    15281528    {
     
    15301530        m_bShowQueue=FALSE;
    15311531        m_wndVertSplitter.HideRow(2,1);
    15321532    }
    1533    
     1533
    15341534}
    15351535
    1536 void CMainFrame::OnUpdateShowqueue(CCmdUI* pCmdUI) 
     1536void CMainFrame::OnUpdateShowqueue(CCmdUI* pCmdUI)
    15371537{
    15381538    pCmdUI->SetCheck(m_bShowQueue);
    15391539}
    15401540
    1541 void CMainFrame::OnClose() 
     1541void CMainFrame::OnClose()
    15421542{
    15431543    ShowWindow(SW_HIDE);
    15441544    if (!m_bQuit)
    15451545    {
    15461546        if (!GetQueuePane()->GetListCtrl()->DoClose())
    15471547            return;
    1548    
     1548
    15491549        m_bQuit=TRUE;
    15501550
    15511551        m_pFileZillaApi->Destroy();
     
    16081608            m_wndRemoteSplitter.GetColumnInfoEx(0,cy4,tmp);
    16091609        else
    16101610            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);
    16121612        str.Format(_T("%d %d %d %d %d"), cy1, cy2, cy3, cy4, cx);
    16131613        COptions::SetOption(OPTION_LASTSPLITTERSIZE, str);
    16141614    }
     
    16251625    delete m_pMinTrayBtn;
    16261626    m_pMinTrayBtn = NULL;
    16271627    CFrameWnd::OnClose();
    1628    
     1628
    16291629}
    16301630
    1631 void CMainFrame::OnProcessQueue() 
     1631void CMainFrame::OnProcessQueue()
    16321632{
    16331633    if (GetQueuePane()->GetListCtrl()->DoProcessQueue())
    16341634        GetQueuePane()->GetListCtrl()->StopProcessing();
     
    16361636        TransferQueue(1);
    16371637}
    16381638
    1639 void CMainFrame::OnUpdateProcessQueue(CCmdUI* pCmdUI) 
     1639void CMainFrame::OnUpdateProcessQueue(CCmdUI* pCmdUI)
    16401640{
    16411641    pCmdUI->Enable(!((CQueueCtrl *)GetQueuePane()->GetListCtrl())->IsQueueEmpty());
    16421642    pCmdUI->SetCheck(((CQueueCtrl *)GetQueuePane()->GetListCtrl())->DoProcessQueue()?1:0);
     
    16481648    ((CQueueCtrl *)GetQueuePane()->GetListCtrl())->TransferQueue(nPriority);
    16491649}
    16501650
    1651 void CMainFrame::OnToolbarDisconnect() 
     1651void CMainFrame::OnToolbarDisconnect()
    16521652{
    16531653    m_pCommandQueue->Cancel();
    16541654    m_pCommandQueue->Disconnect();
    16551655}
    16561656
    1657 void CMainFrame::OnUpdateToolbarDisconnect(CCmdUI* pCmdUI) 
     1657void CMainFrame::OnUpdateToolbarDisconnect(CCmdUI* pCmdUI)
    16581658{
    1659     pCmdUI->Enable(m_pCommandQueue->IsConnected() && !m_pCommandQueue->IsBusy());   
     1659    pCmdUI->Enable(m_pCommandQueue->IsConnected() && !m_pCommandQueue->IsBusy());
    16601660}
    16611661
    1662 void CMainFrame::OnToolbarRefresh() 
     1662void CMainFrame::OnToolbarRefresh()
    16631663{
    16641664    RefreshViews();
    16651665}
     
    16701670    {
    16711671        if (!m_pCommandQueue->IsBusy() && m_pCommandQueue->IsConnected())
    16721672            ((CFtpListCtrl *)GetFtpPane()->GetListCtrl())->Refresh();
    1673        
     1673
    16741674    }
    16751675    if (side!=2)
    16761676    {
     
    16811681    }
    16821682}
    16831683
    1684 void CMainFrame::OnToolbarReconnect() 
     1684void CMainFrame::OnToolbarReconnect()
    16851685{
    16861686    if (m_pCommandQueue->IsBusy() || m_pCommandQueue->IsConnected())
    16871687        return;
    1688    
     1688
    16891689    t_server server;
    16901690    CServerPath path;
    16911691    if (m_pCommandQueue->GetLastServer(server, path))
     
    16981698    }
    16991699}
    17001700
    1701 void CMainFrame::OnUpdateToolbarReconnect(CCmdUI* pCmdUI) 
     1701void CMainFrame::OnUpdateToolbarReconnect(CCmdUI* pCmdUI)
    17021702{
    17031703    BOOL enable = FALSE;
    17041704    if (m_pCommandQueue->IsConnected() || m_pCommandQueue->IsBusy())
     
    17101710        host = COptions::GetOption(OPTION_LASTSERVERHOST);
    17111711        port = COptions::GetOptionVal(OPTION_LASTSERVERPORT);
    17121712        user = COptions::GetOption(OPTION_LASTSERVERUSER);
    1713         //pass=crypt.decrypt(COptions::GetOption(OPTION_LASTSERVERPASS));       
     1713        //pass=crypt.decrypt(COptions::GetOption(OPTION_LASTSERVERPASS));
    17141714        if ((host != "")&&(port != 0))//&&(user!=""))
    17151715            enable = TRUE;
    1716        
     1716
    17171717        pCmdUI->Enable(enable);
    17181718    }
    1719    
     1719
    17201720}
    17211721
    17221722CImageList* CMainFrame::CreateDragImageEx(CListCtrl *pList, LPPOINT lpPoint)
     
    17441744    while ((nIndex = pList->GetNextItem(nIndex, LVNI_SELECTED)) != -1)
    17451745    {
    17461746        if (nIndex > nBottomIndex)
    1747             break; 
     1747            break;
    17481748
    17491749        CRect rectItem;
    17501750        pList->GetItemRect(nIndex, rectItem, LVIR_BOUNDS);
    17511751
    1752         if (rectItem.left < 0) 
     1752        if (rectItem.left < 0)
    17531753            rectItem.left = 0;
    17541754
    17551755        if (rectItem.right > nWidth)
     
    17571757
    17581758        rectComplete.UnionRect(rectComplete, rectItem);
    17591759    }
    1760        
     1760
    17611761    // Create memory device context
    17621762    CClientDC dcClient(this);
    17631763    CDC dcMem;
     
    17861786    // Paint each DragImage in the DC
    17871787    nIndex = pList->GetTopIndex() - 1;
    17881788    while ((nIndex = pList->GetNextItem(nIndex, LVNI_SELECTED)) != -1)
    1789     {   
     1789    {
    17901790        if (nIndex > nBottomIndex)
    17911791            break;
    17921792
     
    17981798        item.cchTextMax = 999;
    17991799
    18001800        pList->GetItem(&item);
    1801        
     1801
    18021802        // Draw the icon
    18031803        CImageList* pSingleImageList = pList->GetImageList((dwStyle == LVS_ICON)?LVSIL_NORMAL:LVSIL_SMALL);
    18041804        if (pSingleImageList)
     
    18081808
    18091809            IMAGEINFO info;
    18101810            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,
    18121812                (rectIcon.top - rectComplete.top + rectIcon.bottom - rectComplete.top) / 2 - (info.rcImage.bottom - info.rcImage.top) / 2 + ((dwStyle == LVS_ICON)?2:0));
    18131813
    1814             pSingleImageList->Draw( &dcMem, item.iImage, 
     1814            pSingleImageList->Draw( &dcMem, item.iImage,
    18151815                                    p,
    18161816                                    ILD_TRANSPARENT);
    18171817        }
     
    18251825        textRect.bottom -= rectComplete.top + 1;
    18261826        textRect.left -= rectComplete.left - 2;
    18271827        textRect.right -= rectComplete.left;
    1828        
     1828
    18291829        DWORD flags = DT_END_ELLIPSIS | DT_MODIFYSTRING;
    18301830        if (dwStyle == LVS_ICON)
    18311831            flags |= DT_CENTER | DT_WORDBREAK;
     
    18541854CImageList* CMainFrame::CreateDragImageEx(CTreeCtrl *pTree, LPPOINT lpPoint)
    18551855{
    18561856    HTREEITEM hItem;
    1857    
     1857
    18581858    if (pTree == GetLocalPane()->GetTreeCtrl())
    18591859        hItem = reinterpret_cast<CDirTreeCtrl *>(pTree)->m_hDragSource;
    18601860    else
     
    18731873    CRect rectItem;
    18741874    pTree->GetItemRect(hItem, rectItem, FALSE);
    18751875
    1876     if (rectItem.left < 0) 
     1876    if (rectItem.left < 0)
    18771877        rectItem.left = 0;
    18781878
    18791879    if (rectItem.right > (nWidth + 50))
    18801880        rectItem.right = nWidth + 50;
    18811881    rectComplete.UnionRect(rectComplete, rectItem);
    18821882
    1883        
     1883
    18841884    // Create memory device context
    18851885    CClientDC dcClient(this);
    18861886    CDC dcMem;
     
    19141914    tvItem.cchTextMax = 999;
    19151915
    19161916    pTree->GetItem(&tvItem);
    1917    
     1917
    19181918    // Draw the icon
    19191919    CImageList* pSingleImageList = pTree->GetImageList(TVSIL_NORMAL);
    19201920    if (pSingleImageList)
     
    19241924
    19251925        IMAGEINFO info;
    19261926        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,
    19281928                rectIcon.top - rectComplete.top);
    1929         pSingleImageList->Draw( &dcMem, tvItem.iImage, 
     1929        pSingleImageList->Draw( &dcMem, tvItem.iImage,
    19301930                                p,
    19311931                                ILD_TRANSPARENT);
    19321932    }
     
    19401940    textRect.bottom -= rectComplete.top + 1;
    19411941    textRect.left -= rectComplete.left - 2;
    19421942    textRect.right -= rectComplete.left;
    1943        
     1943
    19441944    DWORD flags = DT_END_ELLIPSIS | DT_MODIFYSTRING;
    19451945    dcMem.DrawText(text, -1, textRect, flags);
    1946    
     1946
    19471947    dcMem.SelectObject(oldFont);
    19481948
    19491949    dcMem.SelectObject(pOldMemDCBitmap);
     
    19631963    return pCompleteImageList;
    19641964}
    19651965
    1966 void CMainFrame::OnBegindrag(CWnd *pDragWnd, CPoint point) 
     1966void CMainFrame::OnBegindrag(CWnd *pDragWnd, CPoint point)
    19671967{
    19681968    POINT pt = {0};
    19691969    if (pDragWnd == GetLocalPane2()->GetListCtrl() ||
     
    19871987    CPoint ptStart = point;
    19881988    ptStart -= pt;
    19891989    m_pDragImage->BeginDrag(0, ptStart);
    1990     CRect rect; 
    1991     ::GetWindowRect(pDragWnd->m_hWnd, &rect); 
     1990    CRect rect;
     1991    ::GetWindowRect(pDragWnd->m_hWnd, &rect);
    19921992    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);
    19951995    SetCapture();
    19961996}
    19971997
    1998 void CMainFrame::OnMouseMove(UINT nFlags, CPoint point) 
     1998void CMainFrame::OnMouseMove(UINT nFlags, CPoint point)
    19991999{
    20002000    if (m_pDragImage && m_pDragWnd) // In Drag&Drop mode ?
    20012001    {
     
    20742074    CFrameWnd::OnMouseMove(nFlags, point);
    20752075}
    20762076
    2077 void CMainFrame::OnLButtonUp(UINT nFlags, CPoint point) 
     2077void CMainFrame::OnLButtonUp(UINT nFlags, CPoint point)
    20782078{
    20792079    if (m_pDragImage && m_pDragWnd) // In Drag&Drop mode ?
    20802080    {
     
    20852085        CPoint pt(point);
    20862086        ClientToScreen(&pt);
    20872087        CWnd* m_pDropWnd = WindowFromPoint(pt);
    2088        
    2089         if (m_pDragWnd == GetLocalPane2()->GetListCtrl()) 
     2088
     2089        if (m_pDragWnd == GetLocalPane2()->GetListCtrl())
    20902090        {
    20912091            if (m_pDropWnd == GetFtpPane()->GetListCtrl())
    20922092            {
     
    21142114                ((CLocalFileListCtrl*)GetLocalPane2()->GetListCtrl())->OnDragEnd(3, pt);
    21152115            }
    21162116        }
    2117         else if (m_pDragWnd == GetLocalPane()->GetTreeCtrl()) 
     2117        else if (m_pDragWnd == GetLocalPane()->GetTreeCtrl())
    21182118        {
    21192119            if (m_pDropWnd == GetFtpPane()->GetListCtrl())
    21202120            {
     
    21602160        else if (m_pDragWnd == GetFtpTreePane()->GetTreeCtrl())
    21612161        {
    21622162            if (m_pDropWnd == GetFtpTreePane()->GetTreeCtrl())
    2163                 reinterpret_cast<CFtpTreeCtrl *>(GetFtpTreePane()->GetTreeCtrl())->OnDragEnd(0, pt);   
     2163                reinterpret_cast<CFtpTreeCtrl *>(GetFtpTreePane()->GetTreeCtrl())->OnDragEnd(0, pt);
    21642164        }
    2165        
     2165
    21662166        reinterpret_cast<CFtpListCtrl *>(GetFtpPane()->GetListCtrl())->DragLeave(NULL);
    2167         reinterpret_cast<CFtpTreeCtrl *>(GetFtpTreePane()->GetTreeCtrl())->DragLeave(NULL);     
     2167        reinterpret_cast<CFtpTreeCtrl *>(GetFtpTreePane()->GetTreeCtrl())->DragLeave(NULL);
    21682168        reinterpret_cast<CDirTreeCtrl *>(GetLocalPane()->GetTreeCtrl())->DragLeave(m_pDragImage);
    21692169        reinterpret_cast<CLocalFileListCtrl *>(GetLocalPane2()->GetListCtrl())->DragLeave(m_pDragImage);
    21702170
     
    21742174        m_pDragWnd = NULL;
    21752175        m_DropTarget = _T("");
    21762176    }
    2177    
     2177
    21782178    CFrameWnd::OnLButtonUp(nFlags, point);
    21792179}
    21802180
     
    21842184    server.fwbypass=0;
    21852185    server.bDontRememberPass = FALSE;
    21862186    server.nServerType=0;
    2187     if (remote=="") 
     2187    if (remote=="")
    21882188    {
    21892189        remote.LoadString(IDS_ERRORMSG_HOSTNEEDED);
    21902190        return FALSE;
     
    22192219    }
    22202220    else
    22212221        pos=0;
    2222    
     2222
    22232223    pos=remote.Find('/',pos);
    22242224    CString rawpath;
    22252225    if (pos!=-1)
     
    22662266
    22672267    if (!server.port)
    22682268        server.port=21;
    2269    
     2269
    22702270    if (server.user=="")
    22712271    {
    22722272        BOOL bUseGSS=FALSE;
    22732273        if (COptions::GetOptionVal(OPTION_USEGSS))
    22742274        {
    22752275            USES_CONVERSION;
    2276            
     2276
    22772277            CString GssServers=COptions::GetOption(OPTION_GSSSERVERS);
    22782278            hostent *fullname=gethostbyname(T2CA(remote));
    22792279            CString host;
     
    23222322        path.SetPath("/");
    23232323    server.host = remote;
    23242324    remote = rawpath;
    2325    
     2325
    23262326    return TRUE;
    23272327}
    23282328
     
    23382338            if (cmdline[0]=='\"')
    23392339            {
    23402340                cmdline=cmdline.Mid(1);
    2341                 int quote=cmdline.Find(_T("\""));   
     2341                int quote=cmdline.Find(_T("\""));
    23422342                if (quote==-1)
    23432343                {
    23442344                    ArgList.push_back(cmdline);
     
    23822382                    AfxMessageBox(IDS_ERRORMSG_CANTPARSECMDLINE);
    23832383                    return 0;
    23842384                }
    2385            
     2385
    23862386                if (server.bDontRememberPass)
    23872387                {
    23882388                    CEnterSomething dlg(IDS_INPUTDIALOGTITLE_INPUTPASSWORD, IDS_INPUTDIALOGTEXT_INPUTPASSWORD, '*');
     
    24342434
    24352435                    arg = ArgList.front();
    24362436                    ArgList.pop_front();
    2437                    
     2437
    24382438                    CSiteManager dlg;
    24392439                    if (dlg.ImportAndShow(arg)==IDOK)
    24402440                    {
     
    24742474                            AfxMessageBox(IDS_ERRORMSG_CANTPARSECMDLINE);
    24752475                            return 0;
    24762476                        }
    2477            
     2477
    24782478                        t_transferfile transferfile;
    24792479                        transferfile.get=FALSE;
    24802480                        transferfile.localfile=localpath+"\\"+localfile;
     
    25192519                                transferfile.remotefile = arg;
    25202520                            }
    25212521                        }
    2522    
     2522
    25232523                        if (transferfile.server.bDontRememberPass)
    25242524                        {
    25252525                            CEnterSomething dlg(IDS_INPUTDIALOGTITLE_INPUTPASSWORD, IDS_INPUTDIALOGTEXT_INPUTPASSWORD, '*');
     
    25282528                            transferfile.server.bDontRememberPass = FALSE;
    25292529                            transferfile.server.pass = dlg.m_String;
    25302530                        }
    2531                        
     2531
    25322532                        GetQueuePane()->AddItem(transferfile, TRUE, 0);
    2533    
     2533
    25342534                        TransferQueue(2);
    25352535                    }
    25362536                }
     
    25462546                    CString localpath=ArgList.front();
    25472547                    ArgList.pop_front();
    25482548                    localpath.TrimRight( _T("\\") );
    2549    
     2549
    25502550                    t_server server;
    25512551                    CServerPath remotepath;
    2552                        
     2552
    25532553                    if (!ParseURL(remotefile, server, remotepath, TRUE))
    25542554                    {
    25552555                        AfxMessageBox(IDS_ERRORMSG_CANTPARSECMDLINE);
    25562556                        return 0;
    25572557                    }
    2558                    
     2558
    25592559                    __int64 size=-1;
    2560                    
     2560
    25612561                    t_transferfile transferfile;
    25622562                    transferfile.get=TRUE;
    25632563                    transferfile.localfile=localpath+"\\"+remotefile;
     
    25652565                    transferfile.remotepath=remotepath;
    25662566                    transferfile.server=server;
    25672567                    transferfile.size=size;
    2568                    
     2568
    25692569                    transferfile.nType=m_nTransferType;
    25702570                    if (!m_nTransferType)
    25712571                    {
     
    25842584                            AsciiFiles = AsciiFiles.Mid(i + 1);
    25852585                        }
    25862586                    }
    2587                    
     2587
    25882588                    if (!ArgList.empty())
    25892589                    {
    25902590                        CString arg=ArgList.front();
     
    26032603                            transferfile.localfile = localpath + _T("\\") + arg;
    26042604                        }
    26052605                    }
    2606                            
     2606
    26072607                    if (transferfile.server.bDontRememberPass)
    26082608                    {
    26092609                        CEnterSomething dlg(IDS_INPUTDIALOGTITLE_INPUTPASSWORD, IDS_INPUTDIALOGTEXT_INPUTPASSWORD, '*');
     
    26122612                        transferfile.server.bDontRememberPass = FALSE;
    26132613                        transferfile.server.pass = dlg.m_String;
    26142614                    }
    2615                
     2615
    26162616                    GetQueuePane()->AddItem(transferfile, TRUE, 0);
    2617                        
     2617
    26182618                    TransferQueue(2);
    26192619                }
    26202620                else if (arg==_T("-close"))
     
    26392639    return 0;
    26402640}
    26412641
    2642 void CMainFrame::OnCopytositemanager() 
     2642void CMainFrame::OnCopytositemanager()
    26432643{
    26442644    t_server server;
    26452645    if (m_pFileZillaApi->GetCurrentServer(server)==FZ_REPLY_OK)
     
    26492649        int res=dlg.AddAndShow(server);
    26502650        if (res==IDOK)
    26512651            ParseSite(dlg.m_LastSite);
    2652     }   
     2652    }
    26532653}
    26542654
    2655 void CMainFrame::OnUpdateCopytositemanager(CCmdUI* pCmdUI) 
     2655void CMainFrame::OnUpdateCopytositemanager(CCmdUI* pCmdUI)
    26562656{
    2657     pCmdUI->Enable(m_pCommandQueue->IsConnected()); 
     2657    pCmdUI->Enable(m_pCommandQueue->IsConnected());
    26582658}
    26592659
    26602660void CMainFrame::OnUpdateFileConnecttodefaultsite(CCmdUI* pCmdUI)
     
    26652665        delete site;
    26662666}
    26672667
    2668 void CMainFrame::OnTypemenuAscii() 
     2668void CMainFrame::OnTypemenuAscii()
    26692669{
    2670     m_nTransferType=1; 
     2670    m_nTransferType=1;
    26712671}
    26722672
    2673 void CMainFrame::OnUpdateTypemenuAscii(CCmdUI* pCmdUI) 
     2673void CMainFrame::OnUpdateTypemenuAscii(CCmdUI* pCmdUI)
    26742674{
    26752675    pCmdUI->SetCheck(m_nTransferType==1);
    26762676}
    26772677
    2678 void CMainFrame::OnTypemenuBinary() 
     2678void CMainFrame::OnTypemenuBinary()
    26792679{
    2680     m_nTransferType=2;     
     2680    m_nTransferType=2;
    26812681}
    26822682
    2683 void CMainFrame::OnUpdateTypemenuBinary(CCmdUI* pCmdUI) 
     2683void CMainFrame::OnUpdateTypemenuBinary(CCmdUI* pCmdUI)
    26842684{
    26852685    pCmdUI->SetCheck(m_nTransferType==2);
    26862686}
    26872687
    2688 void CMainFrame::OnTypemenuDetect() 
     2688void CMainFrame::OnTypemenuDetect()
    26892689{
    2690     m_nTransferType=0; 
     2690    m_nTransferType=0;
    26912691}
    26922692
    2693 void CMainFrame::OnUpdateTypemenuDetect(CCmdUI* pCmdUI) 
     2693void CMainFrame::OnUpdateTypemenuDetect(CCmdUI* pCmdUI)
    26942694{
    2695     pCmdUI->SetCheck(m_nTransferType==0);   
     2695    pCmdUI->SetCheck(m_nTransferType==0);
    26962696}
    26972697
    2698 void CMainFrame::OnDestroy() 
     2698void CMainFrame::OnDestroy()
    26992699{
    27002700    if (m_pSecureIconCtrl->GetSafeHwnd() && m_pSecureIconCtrl->GetIcon())
    27012701        DestroyIcon(m_pSecureIconCtrl->GetIcon());
    27022702    delete m_pSecureIconCtrl;
    27032703    m_pSecureIconCtrl=0;
    2704    
     2704
    27052705    CFrameWnd::OnDestroy();
    2706    
     2706
    27072707    if (m_pLocalViewHeader)
    27082708    {
    27092709        delete m_pLocalViewHeader->m_pEdit;
     
    27122712        delete m_pLocalViewHeader;
    27132713        m_pLocalViewHeader=0;
    27142714    }
    2715    
     2715
    27162716    if (m_pRemoteViewHeader)
    27172717    {
    27182718        delete m_pRemoteViewHeader->m_pEdit;
     
    27282728        pXML->ResetPos();
    27292729        while (pXML->FindChildElem( _T("RecentServers") ))
    27302730            pXML->RemoveChildElem();
    2731            
     2731
    27322732        pXML->AddChildElem( _T("RecentServers") );
    27332733        pXML->IntoElem();
    27342734        for (std::list<t_server>::reverse_iterator iter=m_RecentQuickconnectServers.rbegin(); iter!=m_RecentQuickconnectServers.rend(); iter++)
     
    27372737                iter->pass = "";
    27382738            COptions::SaveServer(pXML, *iter);
    27392739        }
    2740        
     2740
    27412741        pXML->OutOfElem();
    27422742
    27432743        COptions::UnlockXML();
     
    27762776    }
    27772777}
    27782778
    2779 void CMainFrame::OnViewQuickconnectBar() 
     2779void CMainFrame::OnViewQuickconnectBar()
    27802780{
    27812781    m_bShowQuickconnect = !m_bShowQuickconnect;
    27822782    if (m_bShowQuickconnect)
     
    27922792        }
    27932793        m_pWndDlgBar->ShowWindow(SW_HIDE);
    27942794    }
    2795     RecalcLayout(); 
     2795    RecalcLayout();
    27962796}
    27972797
    2798 void CMainFrame::OnUpdateViewQuickconnectBar(CCmdUI* pCmdUI) 
     2798void CMainFrame::OnUpdateViewQuickconnectBar(CCmdUI* pCmdUI)
    27992799{
    2800     pCmdUI->SetCheck(m_bShowQuickconnect); 
     2800    pCmdUI->SetCheck(m_bShowQuickconnect);
    28012801}
    28022802
    2803 void CMainFrame::OnViewMessagelog() 
     2803void CMainFrame::OnViewMessagelog()
    28042804{
    28052805    m_bShowMessageLog = !m_bShowMessageLog;
    28062806    if (m_bShowMessageLog)
    28072807        m_wndVertSplitter.ShowRow(0);
    28082808    else
    28092809        m_wndVertSplitter.HideRow(0,1);
    2810     RecalcLayout();     
     2810    RecalcLayout();
    28112811}
    28122812
    2813 void CMainFrame::OnUpdateViewMessagelog(CCmdUI* pCmdUI) 
     2813void CMainFrame::OnUpdateViewMessagelog(CCmdUI* pCmdUI)
    28142814{
    2815     pCmdUI->SetCheck(m_bShowMessageLog);   
     2815    pCmdUI->SetCheck(m_bShowMessageLog);
    28162816}
    28172817
    2818 void CMainFrame::OnViewStatusBar() 
     2818void CMainFrame::OnViewStatusBar()
    28192819{
    28202820    m_wndStatusBar.ShowWindow(m_wndStatusBar.IsVisible()?SW_HIDE:SW_SHOW);
    28212821    RecalcLayout();
    28222822}
    28232823
    2824 void CMainFrame::OnViewToolbar() 
     2824void CMainFrame::OnViewToolbar()
    28252825{
    28262826    m_pWndToolBar->ShowWindow(m_pWndToolBar->IsVisible()?SW_HIDE:SW_SHOW);
    28272827    RecalcLayout();
    28282828}
    28292829
    2830 void CMainFrame::OnEditExportsettings() 
     2830void CMainFrame::OnEditExportsettings()
    28312831{
    2832     COptions::Export(); 
     2832    COptions::Export();
    28332833}
    28342834
    2835 void CMainFrame::OnEditImportsettings() 
     2835void CMainFrame::OnEditImportsettings()
    28362836{
    2837     COptions::Import(); 
     2837    COptions::Import();
    28382838}
    28392839
    28402840//*****************************************
    28412841//Code to change the local list view styles
    28422842//*****************************************
    28432843
    2844 void CMainFrame::OnLocalliststyleIcon() 
     2844void CMainFrame::OnLocalliststyleIcon()
    28452845{
    28462846    m_nLocalListViewStyle=2;
    28472847    GetLocalPane2()->m_pListCtrl->SetListStyle(m_nLocalListViewStyle);
    28482848}
    28492849
    2850 void CMainFrame::OnUpdateLocalliststyleIcon(CCmdUI* pCmdUI) 
     2850void CMainFrame::OnUpdateLocalliststyleIcon(CCmdUI* pCmdUI)
    28512851{
    2852     pCmdUI->SetCheck(m_nLocalListViewStyle==2); 
     2852    pCmdUI->SetCheck(m_nLocalListViewStyle==2);
    28532853}
    28542854
    2855 void CMainFrame::OnLocalliststyleList() 
     2855void CMainFrame::OnLocalliststyleList()
    28562856{
    28572857    m_nLocalListViewStyle=1;
    28582858    GetLocalPane2()->m_pListCtrl->SetListStyle(m_nLocalListViewStyle);
    28592859}
    28602860
    2861 void CMainFrame::OnUpdateLocalliststyleList(CCmdUI* pCmdUI) 
     2861void CMainFrame::OnUpdateLocalliststyleList(CCmdUI* pCmdUI)
    28622862{
    2863     pCmdUI->SetCheck(m_nLocalListViewStyle==1); 
     2863    pCmdUI->SetCheck(m_nLocalListViewStyle==1);
    28642864}
    28652865
    2866 void CMainFrame::OnLocalliststyleReport() 
     2866void CMainFrame::OnLocalliststyleReport()
    28672867{
    28682868    m_nLocalListViewStyle=0;
    28692869    GetLocalPane2()->m_pListCtrl->SetListStyle(m_nLocalListViewStyle);
    28702870}
    28712871
    2872 void CMainFrame::OnUpdateLocalliststyleReport(CCmdUI* pCmdUI) 
     2872void CMainFrame::OnUpdateLocalliststyleReport(CCmdUI* pCmdUI)
    28732873{
    2874     pCmdUI->SetCheck(m_nLocalListViewStyle==0); 
     2874    pCmdUI->SetCheck(m_nLocalListViewStyle==0);
    28752875}
    28762876
    2877 void CMainFrame::OnLocalliststyleSmallicon() 
     2877void CMainFrame::OnLocalliststyleSmallicon()
    28782878{
    28792879    m_nLocalListViewStyle=3;
    28802880    GetLocalPane2()->m_pListCtrl->SetListStyle(m_nLocalListViewStyle);
    28812881}
    28822882
    2883 void CMainFrame::OnUpdateLocalliststyleSmallicon(CCmdUI* pCmdUI) 
     2883void CMainFrame::OnUpdateLocalliststyleSmallicon(CCmdUI* pCmdUI)
    28842884{
    2885     pCmdUI->SetCheck(m_nLocalListViewStyle==3); 
     2885    pCmdUI->SetCheck(m_nLocalListViewStyle==3);
    28862886}
    28872887
    2888 void CMainFrame::OnViewLocallistviewFilesize() 
     2888void CMainFrame::OnViewLocallistviewFilesize()
    28892889{
    28902890    m_nHideLocalColumns^=1;
    28912891    GetLocalPane2()->m_pListCtrl->UpdateColumns(m_nHideLocalColumns);
    28922892}
    28932893
    2894 void CMainFrame::OnUpdateViewLocallistviewFilesize(CCmdUI* pCmdUI) 
     2894void CMainFrame::OnUpdateViewLocallistviewFilesize(CCmdUI* pCmdUI)
    28952895{
    28962896    pCmdUI->Enable(!m_nLocalListViewStyle);
    28972897    pCmdUI->SetCheck(!(m_nHideLocalColumns&1));
    28982898}
    28992899
    2900 void CMainFrame::OnViewLocallistviewFiletype() 
     2900void CMainFrame::OnViewLocallistviewFiletype()
    29012901{
    29022902    m_nHideLocalColumns^=2;
    2903     GetLocalPane2()->m_pListCtrl->UpdateColumns(m_nHideLocalColumns);   
     2903    GetLocalPane2()->m_pListCtrl->UpdateColumns(m_nHideLocalColumns);
    29042904}
    29052905
    2906 void CMainFrame::OnUpdateViewLocallistviewFiletype(CCmdUI* pCmdUI) 
     2906void CMainFrame::OnUpdateViewLocallistviewFiletype(CCmdUI* pCmdUI)
    29072907{
    29082908    pCmdUI->Enable(!m_nLocalListViewStyle);
    29092909    pCmdUI->SetCheck(!(m_nHideLocalColumns&2));
    29102910}
    29112911
    2912 void CMainFrame::OnViewLocallistviewLastmodifiedtime() 
     2912void CMainFrame::OnViewLocallistviewLastmodifiedtime()
    29132913{
    29142914    m_nHideLocalColumns^=4;
    2915     GetLocalPane2()->m_pListCtrl->UpdateColumns(m_nHideLocalColumns);   
     2915    GetLocalPane2()->m_pListCtrl->UpdateColumns(m_nHideLocalColumns);
    29162916}
    29172917
    2918 void CMainFrame::OnUpdateViewLocallistviewLastmodifiedtime(CCmdUI* pCmdUI) 
     2918void CMainFrame::OnUpdateViewLocallistviewLastmodifiedtime(CCmdUI* pCmdUI)
    29192919{
    29202920    pCmdUI->Enable(!m_nLocalListViewStyle);
    29212921    pCmdUI->SetCheck(!(m_nHideLocalColumns&4));
     
    29252925//Code to change the remote list view styles
    29262926//******************************************
    29272927
    2928 void CMainFrame::OnRemoteliststyleIcon() 
     2928void CMainFrame::OnRemoteliststyleIcon()
    29292929{
    29302930    m_nRemoteListViewStyle=2;
    29312931    GetFtpPane()->m_pListCtrl->SetListStyle(m_nRemoteListViewStyle);
    29322932}
    29332933
    2934 void CMainFrame::OnUpdateRemoteliststyleIcon(CCmdUI* pCmdUI) 
     2934void CMainFrame::OnUpdateRemoteliststyleIcon(CCmdUI* pCmdUI)
    29352935{
    2936     pCmdUI->SetCheck(m_nRemoteListViewStyle==2);   
     2936    pCmdUI->SetCheck(m_nRemoteListViewStyle==2);
    29372937}
    29382938
    2939 void CMainFrame::OnRemoteliststyleList() 
     2939void CMainFrame::OnRemoteliststyleList()
    29402940{
    29412941    m_nRemoteListViewStyle=1;
    29422942    GetFtpPane()->m_pListCtrl->SetListStyle(m_nRemoteListViewStyle);
    29432943}
    29442944
    2945 void CMainFrame::OnUpdateRemoteliststyleList(CCmdUI* pCmdUI) 
     2945void CMainFrame::OnUpdateRemoteliststyleList(CCmdUI* pCmdUI)
    29462946{
    29472947    pCmdUI->SetCheck(m_nRemoteListViewStyle==1);
    29482948}
    29492949
    2950 void CMainFrame::OnRemoteliststyleReport() 
     2950void CMainFrame::OnRemoteliststyleReport()
    29512951{
    29522952    m_nRemoteListViewStyle=0;
    29532953    GetFtpPane()->m_pListCtrl->SetListStyle(m_nRemoteListViewStyle);
    29542954}
    29552955
    2956 void CMainFrame::OnUpdateRemoteliststyleReport(CCmdUI* pCmdUI) 
     2956void CMainFrame::OnUpdateRemoteliststyleReport(CCmdUI* pCmdUI)
    29572957{
    2958     pCmdUI->SetCheck(m_nRemoteListViewStyle==0);   
     2958    pCmdUI->SetCheck(m_nRemoteListViewStyle==0);
    29592959}
    29602960
    2961 void CMainFrame::OnRemoteliststyleSmallicon() 
     2961void CMainFrame::OnRemoteliststyleSmallicon()
    29622962{
    29632963    m_nRemoteListViewStyle=3;
    29642964    GetFtpPane()->m_pListCtrl->SetListStyle(m_nRemoteListViewStyle);
    29652965}
    29662966
    2967 void CMainFrame::OnUpdateRemoteliststyleSmallicon(CCmdUI* pCmdUI) 
     2967void CMainFrame::OnUpdateRemoteliststyleSmallicon(CCmdUI* pCmdUI)
    29682968{
    2969     pCmdUI->SetCheck(m_nRemoteListViewStyle==3);   
     2969    pCmdUI->SetCheck(m_nRemoteListViewStyle==3);
    29702970}
    29712971
    2972 void CMainFrame::OnViewRemotelistviewFilesize() 
     2972void CMainFrame::OnViewRemotelistviewFilesize()
    29732973{
    29742974    m_nHideRemoteColumns ^= 1;
    2975     GetFtpPane()->m_pListCtrl->UpdateColumns(m_nHideRemoteColumns); 
     2975    GetFtpPane()->m_pListCtrl->UpdateColumns(m_nHideRemoteColumns);
    29762976}
    29772977
    2978 void CMainFrame::OnUpdateViewRemotelistviewFilesize(CCmdUI* pCmdUI) 
     2978void CMainFrame::OnUpdateViewRemotelistviewFilesize(CCmdUI* pCmdUI)
    29792979{
    29802980    pCmdUI->Enable(!m_nRemoteListViewStyle);
    29812981    pCmdUI->SetCheck(!(m_nHideRemoteColumns&1));
    29822982}
    29832983
    2984 void CMainFrame::OnViewRemotelistviewFiletype() 
     2984void CMainFrame::OnViewRemotelistviewFiletype()
    29852985{
    29862986    m_nHideRemoteColumns ^= 2;
    2987     GetFtpPane()->m_pListCtrl->UpdateColumns(m_nHideRemoteColumns); 
     2987    GetFtpPane()->m_pListCtrl->UpdateColumns(m_nHideRemoteColumns);
    29882988}
    29892989
    2990 void CMainFrame::OnUpdateViewRemotelistviewFiletype(CCmdUI* pCmdUI) 
     2990void CMainFrame::OnUpdateViewRemotelistviewFiletype(CCmdUI* pCmdUI)
    29912991{
    29922992    pCmdUI->Enable(!m_nRemoteListViewStyle);
    29932993    pCmdUI->SetCheck(!(m_nHideRemoteColumns&2));
    29942994}
    29952995
    2996 void CMainFrame::OnViewRemotelistviewDate() 
     2996void CMainFrame::OnViewRemotelistviewDate()
    29972997{
    29982998    m_nHideRemoteColumns ^= 4;
    2999     GetFtpPane()->m_pListCtrl->UpdateColumns(m_nHideRemoteColumns); 
     2999    GetFtpPane()->m_pListCtrl->UpdateColumns(m_nHideRemoteColumns);
    30003000}
    30013001
    3002 void CMainFrame::OnUpdateViewRemotelistviewDate(CCmdUI* pCmdUI) 
     3002void CMainFrame::OnUpdateViewRemotelistviewDate(CCmdUI* pCmdUI)
    30033003{
    30043004    pCmdUI->Enable(!m_nRemoteListViewStyle);
    30053005    pCmdUI->SetCheck(!(m_nHideRemoteColumns&4));
    30063006}
    30073007
    3008 void CMainFrame::OnViewRemotelistviewTime() 
     3008void CMainFrame::OnViewRemotelistviewTime()
    30093009{
    30103010    m_nHideRemoteColumns ^= 8;
    3011     GetFtpPane()->m_pListCtrl->UpdateColumns(m_nHideRemoteColumns); 
     3011    GetFtpPane()->m_pListCtrl->UpdateColumns(m_nHideRemoteColumns);
    30123012}
    30133013
    3014 void CMainFrame::OnUpdateViewRemotelistviewTime(CCmdUI* pCmdUI) 
     3014void CMainFrame::OnUpdateViewRemotelistviewTime(CCmdUI* pCmdUI)
    30153015{
    30163016    pCmdUI->Enable(!m_nRemoteListViewStyle);
    30173017    pCmdUI->SetCheck(!(m_nHideRemoteColumns&8));
    30183018}
    30193019
    3020 void CMainFrame::OnViewRemotelistviewPermissions() 
     3020void CMainFrame::OnViewRemotelistviewPermissions()
    30213021{
    30223022    m_nHideRemoteColumns ^= 0x10;
    3023     GetFtpPane()->m_pListCtrl->UpdateColumns(m_nHideRemoteColumns); 
     3023    GetFtpPane()->m_pListCtrl->UpdateColumns(m_nHideRemoteColumns);
    30243024}
    30253025
    3026 void CMainFrame::OnUpdateViewRemotelistviewPermissions(CCmdUI* pCmdUI) 
     3026void CMainFrame::OnUpdateViewRemotelistviewPermissions(CCmdUI* pCmdUI)
    30273027{
    30283028    pCmdUI->Enable(!m_nRemoteListViewStyle);
    30293029    pCmdUI->SetCheck(!(m_nHideRemoteColumns&0x10));
    30303030}
    30313031
    3032 void CMainFrame::OnFileConnecttodefaultsite() 
     3032void CMainFrame::OnFileConnecttodefaultsite()
    30333033{
    30343034    t_SiteManagerItem *site=CSiteManager::GetDefaultSite();
    30353035    if (!site)
    30363036        return;
    3037    
     3037
    30383038    ParseSite(*site);
    30393039    delete site;
    30403040    return;
    30413041}
    30423042
    3043 void CMainFrame::OnHelpmenuContents() 
     3043void CMainFrame::OnHelpmenuContents()
    30443044{
    30453045    HINSTANCE hDLL=LoadLibrary( _T("hhctrl.ocx") );
    30463046    if (hDLL)
     
    30563056    }
    30573057}
    30583058
    3059 void CMainFrame::OnHelpmenuIndex() 
     3059void CMainFrame::OnHelpmenuIndex()
    30603060{
    30613061    HINSTANCE hDLL=LoadLibrary( _T("hhctrl.ocx") );
    30623062    if (hDLL)
     
    30723072    }
    30733073}
    30743074
    3075 void CMainFrame::OnHelpmenuSearch() 
     3075void CMainFrame::OnHelpmenuSearch()
    30763076{
    30773077    HH_FTS_QUERY q;
    30783078    memset(&q,0,sizeof(q));
     
    30893089
    30903090        if (pHtmlHelp)
    30913091            pHtmlHelp(m_hWnd, AfxGetApp()->m_pszHelpFilePath, HH_DISPLAY_SEARCH, (DWORD)&q);
    3092     }   
     3092    }
    30933093}
    30943094
    3095 void CMainFrame::WinHelp(DWORD dwData, UINT nCmd) 
     3095void CMainFrame::WinHelp(DWORD dwData, UINT nCmd)
    30963096{
    30973097    HINSTANCE hDLL=LoadLibrary( _T("hhctrl.ocx") );
    30983098    if (hDLL)
     
    31043104        #endif
    31053105
    31063106        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);
    31083108    }
    31093109}
    31103110
    3111 void CMainFrame::OnOverwritemenuAsk() 
     3111void CMainFrame::OnOverwritemenuAsk()
    31123112{
    31133113    CFileExistsDlg::SetOverwriteSettings(FILEEXISTS_ASK);
    31143114}
    31153115
    3116 void CMainFrame::OnOverwritemenuOverwrite() 
     3116void CMainFrame::OnOverwritemenuOverwrite()
    31173117{
    31183118    CFileExistsDlg::SetOverwriteSettings(FILEEXISTS_OVERWRITE);
    31193119}
    31203120
    3121 void CMainFrame::OnOverwritemenuOverwriteifnewer() 
     3121void CMainFrame::OnOverwritemenuOverwriteifnewer()
    31223122{
    31233123    CFileExistsDlg::SetOverwriteSettings(FILEEXISTS_OVERWRITEIFNEWER);
    31243124}
    31253125
    3126 void CMainFrame::OnOverwritemenuResume() 
     3126void CMainFrame::OnOverwritemenuResume()
    31273127{
    31283128    CFileExistsDlg::SetOverwriteSettings(FILEEXISTS_RESUME);
    31293129}
    31303130
    3131 void CMainFrame::OnOverwritemenuRename() 
     3131void CMainFrame::OnOverwritemenuRename()
    31323132{
    31333133    CFileExistsDlg::SetOverwriteSettings(FILEEXISTS_RENAME);
    31343134}
    31353135
    3136 void CMainFrame::OnOverwritemenuSkip() 
     3136void CMainFrame::OnOverwritemenuSkip()
    31373137{
    31383138    CFileExistsDlg::SetOverwriteSettings(FILEEXISTS_SKIP);
    31393139}
    31403140
    3141 void CMainFrame::OnUpdateOverwritemenuAsk(CCmdUI* pCmdUI) 
     3141void CMainFrame::OnUpdateOverwritemenuAsk(CCmdUI* pCmdUI)
    31423142{
    31433143    pCmdUI->SetCheck(!CFileExistsDlg::Always());
    31443144}
    31453145
    3146 void CMainFrame::OnUpdateOverwritemenuOverwrite(CCmdUI* pCmdUI) 
     3146void CMainFrame::OnUpdateOverwritemenuOverwrite(CCmdUI* pCmdUI)
    31473147{
    31483148    pCmdUI->SetCheck(CFileExistsDlg::Always()?(CFileExistsDlg::GetAction()==FILEEXISTS_OVERWRITE):FALSE);
    31493149}
    31503150
    3151 void CMainFrame::OnUpdateOverwritemenuOverwriteifnewer(CCmdUI* pCmdUI) 
     3151void CMainFrame::OnUpdateOverwritemenuOverwriteifnewer(CCmdUI* pCmdUI)
    31523152{
    31533153    pCmdUI->SetCheck(CFileExistsDlg::Always()?(CFileExistsDlg::GetAction()==FILEEXISTS_OVERWRITEIFNEWER):FALSE);
    31543154}
    31553155
    3156 void CMainFrame::OnUpdateOverwritemenuResume(CCmdUI* pCmdUI) 
     3156void CMainFrame::OnUpdateOverwritemenuResume(CCmdUI* pCmdUI)
    31573157{
    31583158    pCmdUI->SetCheck(CFileExistsDlg::Always()?(CFileExistsDlg::GetAction()==FILEEXISTS_RESUME):FALSE);
    31593159}
    31603160
    3161 void CMainFrame::OnUpdateOverwritemenuRename(CCmdUI* pCmdUI) 
     3161void CMainFrame::OnUpdateOverwritemenuRename(CCmdUI* pCmdUI)
    31623162{
    31633163    pCmdUI->SetCheck(CFileExistsDlg::Always()?(CFileExistsDlg::GetAction()==FILEEXISTS_RENAME):FALSE);
    31643164}
    31653165
    3166 void CMainFrame::OnUpdateOverwritemenuSkip(CCmdUI* pCmdUI) 
     3166void CMainFrame::OnUpdateOverwritemenuSkip(CCmdUI* pCmdUI)
    31673167{
    31683168    pCmdUI->SetCheck(CFileExistsDlg::Always()?(CFileExistsDlg::GetAction()==FILEEXISTS_SKIP):FALSE);
    31693169}
     
    31793179    CString str=COptions::GetOption(OPTION_LASTWINDOWPOS);
    31803180    WINDOWPLACEMENT placement;
    31813181    placement.length=sizeof(placement);
    3182    
     3182
    31833183    int pos;
    31843184    pos=str.Find( _T(" ") );
    31853185    if (pos==-1)
     
    31893189    }
    31903190    m_PosData.state=_ttoi(str.Left(pos));
    31913191    str=str.Mid(pos+1);
    3192    
     3192
    31933193    pos=str.Find( _T(" ") );
    31943194    if (pos==-1)
    31953195    {
     
    31983198    }
    31993199    m_PosData.NormalRect.left=_ttoi(str.Left(pos));
    32003200    str=str.Mid(pos+1);
    3201    
     3201
    32023202    pos=str.Find( _T(" ") );
    32033203    if (pos==-1)
    32043204    {
     
    32073207    }
    32083208    m_PosData.NormalRect.top=_ttoi(str.Left(pos));
    32093209    str=str.Mid(pos+1);
    3210    
     3210
    32113211    pos=str.Find( _T(" ") );
    32123212    if (pos==-1)
    32133213    {
     
    32163216    }
    32173217    m_PosData.NormalRect.right=_ttoi(str.Left(pos));
    32183218    str=str.Mid(pos+1);
    3219    
     3219
    32203220    if (str=="")
    32213221    {
    32223222        CenterWindow();
    32233223        return FALSE;
    32243224    }
    32253225    m_PosData.NormalRect.bottom=_ttoi(str);
    3226    
     3226
    32273227    str=COptions::GetOption(OPTION_LASTSPLITTERSIZE);
    3228    
     3228
    32293229    pos=str.Find( _T(" ") );
    32303230    if (pos==-1)
    32313231    {
     
    32343234    }
    32353235    m_PosData.cy1=_ttoi(str.Left(pos));
    32363236    str=str.Mid(pos+1);
    3237    
     3237
    32383238    pos=str.Find( _T(" ") );
    32393239    if (pos==-1)
    32403240    {
     
    32433243    }
    32443244    m_PosData.cy2=_ttoi(str.Left(pos));
    32453245    str=str.Mid(pos+1);
    3246    
     3246
    32473247    pos=str.Find( _T(" ") );
    32483248    if (pos==-1)
    32493249    {
     
    32523252    }
    32533253    m_PosData.cy3=_ttoi(str.Left(pos));
    32543254    str=str.Mid(pos+1);
    3255    
     3255
    32563256    pos=str.Find( _T(" ") );
    32573257    if (pos==-1)
    32583258    {
     
    32613261    }
    32623262    m_PosData.cy4=_ttoi(str.Left(pos));
    32633263    str=str.Mid(pos+1);
    3264    
     3264
    32653265    if (str=="")
    32663266    {
    32673267        CenterWindow();
    32683268        return FALSE;
    32693269    }
    32703270    m_PosData.cx=_ttoi(str);
    3271    
    3272    
    3273        
     3271
     3272
     3273
    32743274/* //Todo: Coordinate checking which is compatible with multi monitor systems
    32753275    if (placement.rcNormalPosition.left<0)
    32763276    {
     
    33123312        m_wndMainSplitter.SetColumnInfo(0, m_PosData.cx, 0);
    33133313    m_wndMainSplitter.RecalcLayout();
    33143314    m_wndVertSplitter.RecalcLayout();
    3315    
     3315
    33163316    return TRUE;
    33173317}
    33183318
     
    33243324#define VK_X        88
    33253325#define VK_Z        90
    33263326
    3327 BOOL CMainFrame::PreTranslateMessage(MSG* pMsg) 
     3327BOOL CMainFrame::PreTranslateMessage(MSG* pMsg)
    33283328{
    33293329    if ( pMsg->message == WM_KEYDOWN )
    33303330    {
     
    33533353                    m_pLocalViewHeader->m_pEdit->SetFocus();
    33543354                //Local edit field has focus
    33553355                //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)
    33573357                    if (m_bShowTree)
    33583358                        GetLocalPane()->GetTreeCtrl()->SetFocus();
    33593359                    else
     
    34883488                else if (pCurrent==GetLocalPane()->GetTreeCtrl())
    34893489                    m_pLocalViewHeader->m_pEdit->SetFocus();
    34903490                //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)
    34923492                    if (m_bShowMessageLog)
    34933493                        GetStatusPane()->SetFocus();
    34943494                    else
     
    35243524                        else
    35253525                            GetLocalPane2()->GetListCtrl()->SetFocus();
    35263526                else if (pCurrent->GetParent()==m_pWndDlgBar)
    3527                     return CFrameWnd::PreTranslateMessage(pMsg);           
    3528            
     3527                    return CFrameWnd::PreTranslateMessage(pMsg);
     3528
    35293529
    35303530                //No known window has focus
    35313531                else
     
    35463546        }
    35473547        return CFrameWnd::PreTranslateMessage(pMsg);
    35483548    }
    3549        
     3549
    35503550    return CFrameWnd::PreTranslateMessage(pMsg);
    35513551}
    35523552
    3553 void CMainFrame::OnMenuQueueExport() 
     3553void CMainFrame::OnMenuQueueExport()
    35543554{
    35553555    ((CQueueCtrl *)GetQueuePane()->GetListCtrl())->Export();
    35563556}
    35573557
    3558 void CMainFrame::OnUpdateMenuQueueExport(CCmdUI* pCmdUI) 
     3558void CMainFrame::OnUpdateMenuQueueExport(CCmdUI* pCmdUI)
    35593559{
    35603560    pCmdUI->Enable(!((CQueueCtrl *)GetQueuePane()->GetListCtrl())->IsQueueEmpty());
    35613561}
    35623562
    3563 void CMainFrame::OnMenuQueueImport() 
     3563void CMainFrame::OnMenuQueueImport()
    35643564{
    3565     ((CQueueCtrl *)GetQueuePane()->GetListCtrl())->Import();   
     3565    ((CQueueCtrl *)GetQueuePane()->GetListCtrl())->Import();
    35663566}
    35673567
    3568 void CMainFrame::OnUpdateMenuQueueProcessnow(CCmdUI* pCmdUI) 
     3568void CMainFrame::OnUpdateMenuQueueProcessnow(CCmdUI* pCmdUI)
    35693569{
    35703570    pCmdUI->SetCheck(((CQueueCtrl *)GetQueuePane()->GetListCtrl())->DoProcessQueue());
    35713571    pCmdUI->Enable(!((CQueueCtrl *)GetQueuePane()->GetListCtrl())->IsQueueEmpty());
    35723572}
    35733573
    3574 void CMainFrame::OnMenuQueueUseMultiple() 
     3574void CMainFrame::OnMenuQueueUseMultiple()
    35753575{
    3576     ((CQueueCtrl *)GetQueuePane()->GetListCtrl())->ToggleUseMultiple(); 
     3576    ((CQueueCtrl *)GetQueuePane()->GetListCtrl())->ToggleUseMultiple();
    35773577}
    35783578
    3579 void CMainFrame::OnUpdateMenuQueueUseMultiple(CCmdUI* pCmdUI) 
     3579void CMainFrame::OnUpdateMenuQueueUseMultiple(CCmdUI* pCmdUI)
    35803580{
    35813581    pCmdUI->SetCheck(((CQueueCtrl *)GetQueuePane()->GetListCtrl())->DoUseMultiple());
    35823582}
    35833583
    3584 void CMainFrame::OnMenuQueueProcessnow() 
     3584void CMainFrame::OnMenuQueueProcessnow()
    35853585{
    35863586    if (((CQueueCtrl *)GetQueuePane()->GetListCtrl())->DoProcessQueue())
    35873587        ((CQueueCtrl *)GetQueuePane()->GetListCtrl())->StopProcessing();
     
    35893589        TransferQueue(1);
    35903590}
    35913591
    3592 void CMainFrame::OnMenuTransferManualtransfer() 
     3592void CMainFrame::OnMenuTransferManualtransfer()
    35933593{
    35943594    CManualTransferDlg dlg;
    35953595    t_transferfile transferfile;
     
    35973597    t_server server;
    35983598    if (m_pFileZillaApi->GetCurrentServer(server)==FZ_REPLY_OK)
    35993599        pServer=&server;
    3600    
     3600
    36013601    int res=dlg.Show(transferfile, pServer, GetLocalPane2()->GetLocalFolder(), ((CFtpListCtrl *)GetFtpPane()->GetListCtrl())->GetCurrentDirectory());
    36023602    if (res)
    36033603    {
     
    36233623        if (res==2)
    36243624            TransferQueue(2);
    36253625    }
    3626    
     3626
    36273627}
    36283628
    3629 void CMainFrame::OnSysCommand( UINT nID, LPARAM lParam ) 
     3629void CMainFrame::OnSysCommand( UINT nID, LPARAM lParam )
    36303630{
    36313631    if ((nID&0xFFF0)==SC_RESTORE && m_PosData.state)
    36323632    {
     
    36733673    }
    36743674}
    36753675
    3676 LRESULT CMainFrame::DefWindowProc(UINT message, WPARAM wParam, LPARAM lParam) 
     3676LRESULT CMainFrame::DefWindowProc(UINT message, WPARAM wParam, LPARAM lParam)
    36773677{
    36783678    if (m_pFileZillaApi && message==m_nFileZillaApiMessageID)
    36793679    {
     
    37903790        CString caption;
    37913791        caption.LoadString(IDS_QUESTION_VIEWEDIT_MODIFIED_CAPTION);
    37923792        if (MessageBox(text, caption, MB_YESNO | MB_ICONQUESTION)==IDYES)
    3793         {       
     3793        {
    37943794            GetQueuePane()->AddItem(pQueueData->transferFile, TRUE, 3);
    37953795            TransferQueue(2);
    37963796        }
     
    38003800    return CFrameWnd::DefWindowProc(message, wParam, lParam);
    38013801}
    38023802
    3803 void CMainFrame::OnTimer(UINT_PTR nIDEvent) 
     3803void CMainFrame::OnTimer(UINT_PTR nIDEvent)
    38043804{
    38053805    if (nIDEvent==m_nSecTimerID)
    38063806    {
     
    38193819    CFrameWnd::OnTimer(nIDEvent);
    38203820}
    38213821
    3822 void CMainFrame::OnMenuSiteChangepass() 
     3822void CMainFrame::OnMenuSiteChangepass()
    38233823{
    38243824    CServerChangePass dlg;
    38253825    if (dlg.DoModal()==IDOK)
     
    38273827        if (!m_pCommandQueue->Command("SITE PSWD \""+dlg.m_Old+"\" \""+dlg.m_New+"\""))
    38283828            MessageBeep(MB_ICONEXCLAMATION);
    38293829    }
    3830    
     3830
    38313831}
    38323832
    3833 void CMainFrame::OnUpdateMenuSiteChangepass(CCmdUI* pCmdUI) 
     3833void CMainFrame::OnUpdateMenuSiteChangepass(CCmdUI* pCmdUI)
    38343834{
    38353835    pCmdUI->Enable( m_pCommandQueue->IsConnected() && !m_pCommandQueue->IsBusy() );
    38363836}
     
    38513851// Show or hide the taskbar button for this app, depending on whether
    38523852// we're minimized right now or not.
    38533853
    3854 void CMainFrame::OnTrayExit() 
     3854void CMainFrame::OnTrayExit()
    38553855{
    38563856    if (!m_bQuit)
    3857         OnClose(); 
     3857        OnClose();
    38583858}
    38593859
    3860 void CMainFrame::OnTrayRestore() 
     3860void CMainFrame::OnTrayRestore()
    38613861{
    38623862    ShowWindow(SW_RESTORE);
    38633863    if (m_bMaxBeforeTray)
     
    38673867    m_TrayIcon.HideIcon();
    38683868}
    38693869
    3870 void CMainFrame::OnMenuViewShowhidden() 
     3870void CMainFrame::OnMenuViewShowhidden()
    38713871{
    38723872    m_bShowHiddenFiles=!m_bShowHiddenFiles;
    38733873    if (m_pFileZillaApi)
     
    38763876        RefreshViews(2);
    38773877}
    38783878
    3879 void CMainFrame::OnUpdateMenuViewShowhidden(CCmdUI* pCmdUI) 
     3879void CMainFrame::OnUpdateMenuViewShowhidden(CCmdUI* pCmdUI)
    38803880{
    38813881    pCmdUI->SetCheck(m_bShowHiddenFiles);
    3882    
     3882
    38833883}
    38843884
    3885 void CMainFrame::OnShowremotetree() 
     3885void CMainFrame::OnShowremotetree()
    38863886{
    38873887    if (!m_bShowRemoteTree)
    38883888    {
     
    39073907        GetFtpTreePane()->EnableTree(FALSE);
    39083908    }
    39093909    GetFtpTreePane()->UpdateViewHeader();
    3910     GetFtpPane()->UpdateViewHeader();   
     3910    GetFtpPane()->UpdateViewHeader();
    39113911}
    39123912
    3913 void CMainFrame::OnUpdateShowremotetree(CCmdUI* pCmdUI) 
     3913void CMainFrame::OnUpdateShowremotetree(CCmdUI* pCmdUI)
    39143914{
    3915     pCmdUI->SetCheck(m_bShowRemoteTree);   
     3915    pCmdUI->SetCheck(m_bShowRemoteTree);
    39163916}
    39173917
    39183918void CMainFrame::OnMenuDebugDumpDirectoryCache()
     
    39293929    *p= 0; //Boom!
    39303930}
    39313931
    3932 void CMainFrame::OnMenuServerEnterrawcommand() 
     3932void CMainFrame::OnMenuServerEnterrawcommand()
    39333933{
    39343934    if (!m_pCommandQueue->IsConnected())
    39353935        return;
     
    39423942        CMainFrame *pOwner=DYNAMIC_DOWNCAST(CMainFrame,pWnd);
    39433943        if (!m_pCommandQueue->Command(command))
    39443944            MessageBeep(MB_ICONEXCLAMATION);
    3945     }   
     3945    }
    39463946}
    39473947
    3948 void CMainFrame::OnUpdateMenuServerEnterrawcommand(CCmdUI* pCmdUI) 
     3948void CMainFrame::OnUpdateMenuServerEnterrawcommand(CCmdUI* pCmdUI)
    39493949{
    39503950    if (m_pCommandQueue->IsConnected())
    39513951    {
     
    39673967    nPort.Format( _T("%d"), site.nPort);
    39683968    User=site.User;
    39693969    Pass=site.Pass;
    3970    
     3970
    39713971    if (site.nLogonType == 0)
    39723972    {
    39733973        User = "anonymous";
    39743974        Pass = "anon@";
    39753975    }
    3976    
    3977     if (Host=="") 
     3976
     3977    if (Host=="")
    39783978    {
    39793979        AfxMessageBox(IDS_ERRORMSG_HOSTNEEDED, MB_ICONEXCLAMATION);
    39803980        return;
    39813981    }
    3982    
     3982
    39833983    int pos=Host.Find(':');
    39843984    if (pos!=-1)
    39853985    {
     
    40184018            return;
    40194019        }
    40204020    }
    4021    
     4021
    40224022    pos=Host.ReverseFind('@');
    40234023    if (pos!=-1)
    4024     {   
     4024    {
    40254025        CString tmp=Host.Left(pos);
    40264026        int pos2=tmp.Find(':');
    40274027        if (pos2==-1)
     
    40324032        Host=Host.Right(Host.GetLength()-pos-1);
    40334033        User=tmp.Left(pos2);
    40344034        Pass=tmp.Right(tmp.GetLength()-pos2-1);
    4035        
     4035
    40364036    }
    40374037
    40384038    int pos2 = Host.ReverseFind(']');
     
    40934093    default:
    40944094        server.nServerType = FZ_SERVERTYPE_FTP;
    40954095    }
    4096    
     4096
    40974097    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 &&
    40994099        server==currentserver && !m_pCommandQueue->IsBusy())
    41004100    {
    41014101        if (m_pCommandQueue->List(site.RemoteDir, FZ_LIST_USECACHE))
     
    41134113        m_pCommandQueue->Cancel();
    41144114        m_pCommandQueue->Disconnect();
    41154115    }
    4116        
     4116
    41174117    if (site.LocalDir!="")
    41184118        SetLocalFolder(site.LocalDir);
    41194119    m_pCommandQueue->Connect(server);
     
    41374137    ProcessQuickconnect(TRUE);
    41384138}
    41394139
    4140 BOOL CMainFrame::OnCommand(WPARAM wParam, LPARAM lParam) 
     4140BOOL CMainFrame::OnCommand(WPARAM wParam, LPARAM lParam)
    41414141{
    41424142    if (LOWORD(wParam)>=ID_QUICKCONNECTBAR_MENU_HISTORY1 && LOWORD(wParam)<=ID_QUICKCONNECTBAR_MENU_HISTORY10)
    41434143    {
     
    41814181        }
    41824182        return TRUE;
    41834183    }
    4184    
     4184
    41854185    return CFrameWnd::OnCommand(wParam, lParam);
    41864186}
    41874187
    4188 void CMainFrame::OnMenuServerCopyurltoclipboard() 
     4188void CMainFrame::OnMenuServerCopyurltoclipboard()
    41894189{
    41904190    t_server server;
    41914191    if (m_pFileZillaApi->GetCurrentServer(server)==FZ_REPLY_OK)
     
    42084208        }
    42094209        else if (server.port!=21)
    42104210            tmp.Format(_T("%d"), server.port);
    4211        
     4211
    42124212        if (tmp!="")
    42134213            str+=_T(":")+tmp;
    42144214        CString path=((CFtpListCtrl *)GetFtpPane()->GetListCtrl())->GetCurrentDirectory().GetPath();
     
    42164216            str+=_T("/");
    42174217        str+=path;
    42184218
    4219         OpenClipboard();   
     4219        OpenClipboard();
    42204220        EmptyClipboard();
    42214221        HGLOBAL hData;
    42224222
     
    42274227        GlobalUnlock(hData);
    42284228        SetClipboardData(CF_TEXT,hData);
    42294229        CloseClipboard();
    4230     }       
     4230    }
    42314231}
    42324232
    4233 void CMainFrame::OnUpdateMenuServerCopyurltoclipboard(CCmdUI* pCmdUI) 
     4233void CMainFrame::OnUpdateMenuServerCopyurltoclipboard(CCmdUI* pCmdUI)
    42344234{
    4235     pCmdUI->Enable(m_pCommandQueue->IsConnected()); 
     4235    pCmdUI->Enable(m_pCommandQueue->IsConnected());
    42364236}
    42374237
    42384238
     
    42714271    //CSiteManager::ReadTree( _T(""), menu.m_hMenu, ( LPVOID)&mt, NULL, NewItem_Menu, NewFolder_Menu, After_Menu);
    42724272    CMenu* pPopup = &menu;//.GetSubMenu(0);
    42734273    ASSERT(pPopup);
    4274    
     4274
    42754275    CRect rc;
    42764276    pWnd->SendMessage(TB_GETRECT, nmtb->iItem, (LPARAM)&rc);
    42774277    pWnd->ClientToScreen(&rc);
    4278    
     4278
    42794279    UINT res = pPopup->TrackPopupMenu( TPM_LEFTALIGN | TPM_LEFTBUTTON | TPM_VERTICAL | TPM_RETURNCMD | TPM_NONOTIFY,
    42804280        rc.left, rc.bottom, this, &rc);
    42814281
    42824282    if ( res > 0)
    42834283    {
    42844284        t_SiteManagerItem *site;
    4285        
     4285
    42864286        int i;
    42874287        std::list<t_SiteManagerItem *>::iterator iter=mt.m_Sites.begin();
    42884288        for (i=(res-10); i>0; i--)
    42894289            iter++;
    42904290
    42914291        site=*iter;
    4292        
     4292
    42934293        if (site)
    42944294        {
    42954295            CSiteManager::ConnectSitePrepare(site);
    4296            
     4296
    42974297            ParseSite(*site);
    42984298        }
    42994299    }
     
    43114311    m_Host.TrimLeft(_T(" "));
    43124312    t_server server;
    43134313    server.nServerType=0;
    4314     if (m_Host=="") 
     4314    if (m_Host=="")
    43154315    {
    43164316        m_pWndDlgBar->RedrawWindow();
    43174317        AfxMessageBox(IDS_ERRORMSG_HOSTNEEDED,MB_ICONEXCLAMATION);
     
    43634363    {
    43644364        if ( m_Host.GetLength()>(pos+1) && m_Host[pos+1]==' ')
    43654365            path=m_Host.Right(m_Host.GetLength()-pos);
    4366         else 
     4366        else
    43674367            path=m_Host.Right(m_Host.GetLength()-pos-1);
    43684368        m_Host=m_Host.Left(pos);
    43694369        if (m_Host=="")
     
    43934393        m_pWndDlgBar->SetDlgItemText(IDC_USER,m_User);
    43944394        m_pWndDlgBar->SetDlgItemText(IDC_PASS,m_Pass);
    43954395        m_pWndDlgBar->SetDlgItemText(IDC_HOST,ServerPrefix+m_Host);
    4396            
     4396
    43974397    }
    43984398
    43994399    int pos2 = m_Host.ReverseFind(']');
     
    44034403        m_Port=m_Host.Right(m_Host.GetLength()-pos-1);
    44044404        m_pWndDlgBar->SetDlgItemText(IDC_PORT,m_Port);
    44054405        m_Host=m_Host.Left(pos);
    4406         m_pWndDlgBar->SetDlgItemText(IDC_HOST,ServerPrefix+m_Host);     
     4406        m_pWndDlgBar->SetDlgItemText(IDC_HOST,ServerPrefix+m_Host);
    44074407    }
    44084408
    44094409    if (m_Port=="")
     
    44304430        if (COptions::GetOptionVal(OPTION_USEGSS))
    44314431        {
    44324432            USES_CONVERSION;
    4433            
     4433
    44344434            CString GssServers=COptions::GetOption(OPTION_GSSSERVERS);
    44354435            hostent *fullname=gethostbyname(T2CA(m_Host));
    44364436            CString host;
     
    44624462        }
    44634463        m_pWndDlgBar->SetDlgItemText(IDC_USER,m_User);
    44644464        m_pWndDlgBar->SetDlgItemText(IDC_PASS,m_Pass);
    4465            
     4465
    44664466    }
    44674467    if (!server.nServerType)
    44684468    {
     
    44904490    m_pCommandQueue->Connect(server);
    44914491    if (path!="")
    44924492        m_pCommandQueue->List(path,FZ_LIST_USECACHE,TRUE);
    4493     else 
     4493    else
    44944494        m_pCommandQueue->List(FZ_LIST_USECACHE,TRUE);
    44954495
    44964496    m_pWndDlgBar->RedrawWindow();
     
    45134513    }
    45144514    else if (server.port!=21)
    45154515        tmp.Format(_T("%d"), server.port);
    4516        
     4516
    45174517    if (tmp!="")
    45184518        str+=_T(":")+tmp;
    45194519
     
    45374537        }
    45384538        else if (iter->port!=21)
    45394539            tmp.Format(_T("%d"), iter->port);
    4540        
     4540
    45414541        if (tmp!="")
    45424542            str2+=_T(":")+tmp;
    45434543
     
    45594559    m_nRecentQuickconnectCommandOffset%=10;
    45604560}
    45614561
    4562 void CMainFrame::OnMenuViewRemotelistviewStatusbar() 
     4562void CMainFrame::OnMenuViewRemotelistviewStatusbar()
    45634563{
    45644564    GetFtpPane()->EnableStatusbar(!GetFtpPane()->IsStatusbarEnabled());
    45654565}
    45664566
    4567 void CMainFrame::OnMenuViewLocallistviewStatusbar() 
     4567void CMainFrame::OnMenuViewLocallistviewStatusbar()
    45684568{
    45694569    GetLocalPane2()->EnableStatusbar(!GetLocalPane2()->IsStatusbarEnabled());
    45704570}
    45714571
    4572 void CMainFrame::OnUpdateMenuViewRemotelistviewStatusbar(CCmdUI* pCmdUI) 
     4572void CMainFrame::OnUpdateMenuViewRemotelistviewStatusbar(CCmdUI* pCmdUI)
    45734573{
    4574     pCmdUI->SetCheck(GetFtpPane()->IsStatusbarEnabled());   
     4574    pCmdUI->SetCheck(GetFtpPane()->IsStatusbarEnabled());
    45754575}
    45764576
    4577 void CMainFrame::OnUpdateMenuViewLocallistviewStatusbar(CCmdUI* pCmdUI) 
     4577void CMainFrame::OnUpdateMenuViewLocallistviewStatusbar(CCmdUI* pCmdUI)
    45784578{
    4579     pCmdUI->SetCheck(GetLocalPane2()->IsStatusbarEnabled());   
     4579    pCmdUI->SetCheck(GetLocalPane2()->IsStatusbarEnabled());
    45804580}
    45814581
    4582 void CMainFrame::OnViewRemotelistviewOwnergroup() 
     4582void CMainFrame::OnViewRemotelistviewOwnergroup()
    45834583{
    45844584    m_nHideRemoteColumns ^= 0x20;
    4585     GetFtpPane()->m_pListCtrl->UpdateColumns(m_nHideRemoteColumns); 
     4585    GetFtpPane()->m_pListCtrl->UpdateColumns(m_nHideRemoteColumns);
    45864586}
    45874587
    4588 void CMainFrame::OnUpdateViewRemotelistviewOwnergroup(CCmdUI* pCmdUI) 
     4588void CMainFrame::OnUpdateViewRemotelistviewOwnergroup(CCmdUI* pCmdUI)
    45894589{
    45904590    pCmdUI->Enable(!m_nRemoteListViewStyle);
    45914591    pCmdUI->SetCheck(!(m_nHideRemoteColumns&0x20));
     
    46104610        ID_HELPMENU_CONTENTS
    46114611    };
    46124612    m_pWndToolBar = new CToolBar;
    4613    
     4613
    46144614    if (!m_pWndToolBar->CreateEx(this, 0, WS_CHILD|WS_VISIBLE|CBRS_ALIGN_TOP, CRect(2, 2, 0, 0)))
    46154615    {
    46164616        TRACE0("Symbolleiste konnte nicht erstellt werden\n");
     
    46284628        TRACE0("Symbolleiste konnte nicht erstellt werden\n");
    46294629        return FALSE;      // Fehler bei Erstellung
    46304630    }
    4631    
     4631
    46324632    int style = TBSTYLE_FLAT;
    46334633    CVisualStylesXP xp;
    46344634    if (xp.IsAppThemed())
     
    46404640    m_pWndToolBar->SetButtonStyle(m_pWndToolBar->CommandToIndex(ID_SITEMANAGER), dwStyle);
    46414641
    46424642    m_pWndDlgBar = new CTransparentDialogBar;
    4643     if (!m_pWndDlgBar->Create(this, IDR_MAINFRAME, 
     4643    if (!m_pWndDlgBar->Create(this, IDR_MAINFRAME,
    46444644        CBRS_ALIGN_TOP, AFX_IDW_DIALOGBAR))
    46454645    {
    46464646        TRACE0("Dialogleiste konnte nicht erstellt werden\n");
     
    46654665    return TRUE;
    46664666}
    46674667
    4668 void CMainFrame::OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized) 
     4668void CMainFrame::OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized)
    46694669{
    46704670    CFrameWnd::OnActivate(nState, pWndOther, bMinimized);
    46714671
  • source/ManualTransferDlg.cpp

    RCS file: /cvsroot/filezilla/FileZilla/source/ManualTransferDlg.cpp,v
    retrieving revision 1.7
    diff -u -r1.7 ManualTransferDlg.cpp
     
    3030#endif
    3131
    3232/////////////////////////////////////////////////////////////////////////////
    33 // Dialogfeld CManualTransferDlg 
     33// Dialogfeld CManualTransferDlg
    3434
    3535
    3636CManualTransferDlg::CManualTransferDlg(CWnd* pParent /*=NULL*/)
     
    8282END_MESSAGE_MAP()
    8383
    8484/////////////////////////////////////////////////////////////////////////////
    85 // Behandlungsroutinen für Nachrichten CManualTransferDlg 
     85// Behandlungsroutinen für Nachrichten CManualTransferDlg
    8686
    8787int CManualTransferDlg::Show(t_transferfile &transferfile, t_server *pServer, CString LocalPath, CServerPath RemotePath)
    8888{
     
    9999    return 0;
    100100}
    101101
    102 void CManualTransferDlg::OnOK() 
     102void CManualTransferDlg::OnOK()
    103103{
    104104    UpdateData(TRUE);
    105105
     
    142142        AfxMessageBox(IDS_MANUALTRANSFER_LOCALFILE);
    143143        return;
    144144    }
    145    
     145
    146146    CServerPath path=m_RemotePath;
    147147    if (m_pServer)
    148148        path.SetServer(*m_pServer);
     
    198198        m_Transferfile.server=*m_pServer;
    199199    else
    200200    {
    201         if (m_Host=="") 
     201        if (m_Host=="")
    202202        {
    203203            GetDlgItem(IDC_MANUALTRANSFER_HOST)->SetFocus();
    204204            AfxMessageBox(IDS_MANUALTRANSFER_HOST, MB_ICONEXCLAMATION);
     
    261261            m_Host=m_Host.Left(pos);
    262262        }
    263263        m_Transferfile.server.host=m_Host;
    264        
     264
    265265        if (m_Port=="")
    266266            m_Port="21";
    267        
     267
    268268        int nPort=_ttoi(m_Port);
    269269        if (nPort<1 || nPort>65535)
    270270        {
    271271            GetDlgItem(IDC_MANUALTRANSFER_PORT)->SetFocus();
    272272            AfxMessageBox(IDS_MANUALTRANSFER_PORT,MB_ICONEXCLAMATION);
    273273            return;
    274         }   
     274        }
    275275        m_Transferfile.server.port=nPort;
    276        
     276
    277277        if (m_nLogontype)
    278278        {
    279279            if (m_User=="")
     
    282282                if (COptions::GetOptionVal(OPTION_USEGSS))
    283283                {
    284284                    USES_CONVERSION;
    285                    
     285
    286286                    CString GssServers=COptions::GetOption(OPTION_GSSSERVERS);
    287287                    hostent *fullname=gethostbyname(T2CA(m_Host));
    288288                    CString host;
     
    356356    CDialog::OnOK();
    357357}
    358358
    359 BOOL CManualTransferDlg::OnInitDialog() 
     359BOOL CManualTransferDlg::OnInitDialog()
    360360{
    361361    CDialog::OnInitDialog();
    362362
     
    374374
    375375    UpdateData(FALSE);
    376376    SetCtrlState();
    377    
     377
    378378    return TRUE;  // return TRUE unless you set the focus to a control
    379379                  // EXCEPTION: OCX-Eigenschaftenseiten sollten FALSE zurückgeben
    380380}
     
    415415
    416416}
    417417
    418 void CManualTransferDlg::OnManualtransferServer() 
     418void CManualTransferDlg::OnManualtransferServer()
    419419{
    420     SetCtrlState(); 
     420    SetCtrlState();
    421421}
    422422
    423 void CManualTransferDlg::OnManualtransferLogontype() 
     423void CManualTransferDlg::OnManualtransferLogontype()
    424424{
    425     SetCtrlState(); 
     425    SetCtrlState();
    426426}
  • source/Options.cpp

    RCS file: /cvsroot/filezilla/FileZilla/source/Options.cpp,v
    retrieving revision 1.112
    diff -u -r1.112 Options.cpp
     
    4141CString COptions::m_sConfigFile;
    4242
    4343/////////////////////////////////////////////////////////////////////////////
    44 // Dialogfeld COptions 
     44// Dialogfeld COptions
    4545
    4646COptions::COptions(CWnd* pParent /*=NULL*/)
    4747    //: CSAPrefsDialog(pParent)
     
    6767END_MESSAGE_MAP()
    6868
    6969/////////////////////////////////////////////////////////////////////////////
    70 // Behandlungsroutinen für Nachrichten COptions 
     70// Behandlungsroutinen für Nachrichten COptions
    7171
    7272BOOL COptions::Show()
    7373{
     
    9292        AddPage(m_OptionsPaneLayoutPage, IDS_OPTIONSPAGE_PANELAYOUT, &m_OptionsInterfacePage);
    9393        AddPage(m_OptionsLoggingPage, IDS_OPTIONSPAGE_LOGGING, &m_OptionsInterfacePage);
    9494    AddPage(m_OptionsDebugPage, IDS_OPTIONSPAGE_DEBUG);
    95        
    96    
     95
     96
    9797    SetConstantText("FileZilla");
    9898
    9999    m_OptionsFtpProxyPage.m_logontype=GetOptionVal(OPTION_LOGONTYPE);
     
    118118    //Init type page
    119119    m_OptionsTypePage.m_nTypeMode = GetOptionVal(OPTION_TRANSFERMODE);
    120120    m_OptionsTypePage.m_AsciiFiles = GetOption(OPTION_ASCIIFILES);
    121    
     121
    122122    //Init misc page
    123123    m_OptionsMiscPage.m_nFolderType = GetOptionVal(OPTION_DEFAULTFOLDERTYPE);
    124124    m_OptionsMiscPage.m_DefaultFolder = GetOption(OPTION_DEFAULTFOLDER);
     
    151151    m_OptionsLocalViewPage.m_bShowStatusBar = GetOptionVal(OPTION_SHOWLOCALSTATUSBAR);
    152152    m_OptionsLocalViewPage.m_bRememberColumnSort = GetOptionVal(OPTION_LOCALCOLUMNSORT) ? TRUE : FALSE;
    153153    m_OptionsLocalViewPage.m_nDoubleclickAction = GetOptionVal(OPTION_LOCAL_DOUBLECLICK_ACTION);
    154    
     154
    155155    //Init remote view page
    156156    m_OptionsRemoteViewPage.m_nViewMode = GetOptionVal(OPTION_REMEMBERREMOTEVIEW);
    157157    m_OptionsRemoteViewPage.m_nRemoteStyle = GetOptionVal(OPTION_REMOTELISTVIEWSTYLE);
     
    168168    m_OptionsRemoteViewPage.m_bShowStatusBar = GetOptionVal(OPTION_SHOWREMOTESTATUSBAR);
    169169    m_OptionsRemoteViewPage.m_bRememberColumnSort = GetOptionVal(OPTION_REMOTECOLUMNSORT) ? TRUE : FALSE;
    170170    m_OptionsRemoteViewPage.m_nDoubleclickAction = GetOptionVal(OPTION_REMOTE_DOUBLECLICK_ACTION);
    171    
     171
    172172    //Init GSS Page
    173173    m_OptionsGssPage.m_bUseGSS=GetOptionVal(OPTION_USEGSS);
    174     m_OptionsGssPage.m_GssServers=GetOption(OPTION_GSSSERVERS); 
     174    m_OptionsGssPage.m_GssServers=GetOption(OPTION_GSSSERVERS);
    175175
    176176    //Init Debug Page
    177177    m_OptionsDebugPage.m_bEngineTrace=GetOptionVal(OPTION_DEBUGTRACE);
     
    187187    m_OptionsFirewallPage.m_TransferIP = GetOption(OPTION_TRANSFERIP);
    188188    m_OptionsFirewallPage.m_bUseTransferIP6 = (GetOption(OPTION_TRANSFERIP6)!="") ? TRUE : FALSE;
    189189    m_OptionsFirewallPage.m_TransferIP6 = GetOption(OPTION_TRANSFERIP6);
    190    
     190
    191191    //Init Directory Cache page
    192192    m_OptionsDirCachePage.m_bUseCache=GetOptionVal(OPTION_USECACHE)?1:0;
    193193    m_OptionsDirCachePage.m_nHours=GetOptionVal(OPTION_MAXCACHETIME)/3600;
     
    249249    BOOL res = DoModal();
    250250    if (res != IDOK)
    251251        return FALSE;
    252    
     252
    253253    SetOption(OPTION_LOGONTYPE,m_OptionsFtpProxyPage.m_logontype);
    254254    SetOption(OPTION_FWHOST,m_OptionsFtpProxyPage.m_fwhost);
    255255    SetOption(OPTION_FWPORT,m_OptionsFtpProxyPage.m_fwport);
     
    257257    SetOption(OPTION_FWPASS,CCrypt::encrypt(m_OptionsFtpProxyPage.m_fwpass));
    258258    SetOption(OPTION_TIMEOUTLENGTH,m_OptionsPage2.m_Timeout);
    259259    SetOption(OPTION_KEEPALIVE,m_OptionsPage2.m_UseKeepAlive);
    260    
     260
    261261    if (m_OptionsPage2.m_UseKeepAlive)
    262262    {
    263263        SetOption(OPTION_INTERVALLOW,_ttoi(m_OptionsPage2.m_IntervalLow));
     
    292292    SetOption(OPTION_SHOWNOSTATUSBAR,!m_OptionsInterfacePage.m_bShowStatusBar);
    293293    SetOption(OPTION_SHOWNOMESSAGELOG,!m_OptionsInterfacePage.m_bShowMessageLog);
    294294    SetOption(OPTION_SHOWNOTREEVIEW,!m_OptionsInterfacePage.m_bShowLocalTree);
    295     SetOption(OPTION_SHOWREMOTETREEVIEW, m_OptionsInterfacePage.m_bShowRemoteTree); 
     295    SetOption(OPTION_SHOWREMOTETREEVIEW, m_OptionsInterfacePage.m_bShowRemoteTree);
    296296    SetOption(OPTION_SHOWNOQUEUE,!m_OptionsInterfacePage.m_bShowQueue);
    297297    SetOption(OPTION_SHOWNOLABEL,!m_OptionsInterfacePage.m_bShowViewLabels);
    298298    SetOption(OPTION_REMEMBERVIEWS,m_OptionsInterfacePage.m_nViewMode);
    299299    SetOption(OPTION_REMEMBERLASTWINDOWPOS,m_OptionsInterfacePage.m_bRememberWindowPos);
    300300    SetOption(OPTION_MINIMIZETOTRAY, m_OptionsInterfacePage.m_nMinimize);
    301    
     301
    302302    //Store local view page
    303303    SetOption(OPTION_REMEMBERLOCALVIEW,m_OptionsLocalViewPage.m_nViewMode);
    304304    SetOption(OPTION_LOCALLISTVIEWSTYLE,m_OptionsLocalViewPage.m_nLocalStyle);
    305    
     305
    306306    nLocalHide=0;
    307307    if (!m_OptionsLocalViewPage.m_bSize)
    308308        nLocalHide|=1;
     
    319319    else if (!m_OptionsLocalViewPage.m_bRememberColumnSort && GetOptionVal(OPTION_LOCALCOLUMNSORT))
    320320        SetOption(OPTION_LOCALCOLUMNSORT, 0);
    321321    SetOption(OPTION_LOCAL_DOUBLECLICK_ACTION, m_OptionsLocalViewPage.m_nDoubleclickAction);
    322    
     322
    323323    //Store remote view page
    324324    SetOption(OPTION_REMEMBERREMOTEVIEW, m_OptionsRemoteViewPage.m_nViewMode);
    325325    SetOption(OPTION_REMOTELISTVIEWSTYLE, m_OptionsRemoteViewPage.m_nRemoteStyle);
    326    
     326
    327327    nRemoteHide = 0;
    328328    if (!m_OptionsRemoteViewPage.m_bSize)
    329329        nRemoteHide |= 1;
     
    347347    else if (!m_OptionsRemoteViewPage.m_bRememberColumnSort && GetOptionVal(OPTION_REMOTECOLUMNSORT))
    348348        SetOption(OPTION_REMOTECOLUMNSORT, 0);
    349349    SetOption(OPTION_REMOTE_DOUBLECLICK_ACTION, m_OptionsRemoteViewPage.m_nDoubleclickAction);
    350    
     350
    351351    //Store the GSS settings
    352352    SetOption(OPTION_USEGSS,m_OptionsGssPage.m_bUseGSS);
    353353    SetOption(OPTION_GSSSERVERS,m_OptionsGssPage.m_GssServers);
     
    368368    //Store Directory Cache settings
    369369    SetOption(OPTION_USECACHE,m_OptionsDirCachePage.m_bUseCache);
    370370    SetOption(OPTION_MAXCACHETIME,m_OptionsDirCachePage.m_nHours*3600+m_OptionsDirCachePage.m_nMinutes*60+m_OptionsDirCachePage.m_nSeconds);
    371    
     371
    372372    //Store Transfer page
    373373    SetOption(OPTION_PRESERVEDOWNLOADFILETIME, m_OptionsTransferPage.m_bPreserveTime);
    374374    int value=_ttoi(m_OptionsTransferPage.m_MaxPrimarySize);
     
    436436    return TRUE;
    437437}
    438438
    439 BOOL COptions::OnInitDialog() 
     439BOOL COptions::OnInitDialog()
    440440{
    441441    CSAPrefsDialog::OnInitDialog();
    442        
     442
    443443    return TRUE;  // return TRUE unless you set the focus to a control
    444444                  // EXCEPTION: OCX-Eigenschaftenseiten sollten FALSE zurückgeben
    445445}
     
    557557        unsigned char tmp[4];
    558558        memcpy(tmp,&value,4);
    559559        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)
    561561        {
    562562            RegSetValueEx(key, options[nOptionID-1].name, 0, REG_DWORD, tmp, 4);
    563563            RegCloseKey(key);
     
    576576    m_OptionsCache[nOptionID-1].createtime=CTime::GetCurrentTime();
    577577    m_OptionsCache[nOptionID-1].str=value;
    578578    m_OptionsCache[nOptionID-1].nType=0;
    579        
     579
    580580    if (m_bUseXML)
    581581    {
    582582        m_markup.ResetPos();
    583583        if (!m_markup.FindChildElem( _T("Settings") ))
    584584            m_markup.AddChildElem( _T("Settings") );
    585        
     585
    586586        CString str;
    587587        m_markup.IntoElem();
    588588        str=m_markup.GetTagName();
     
    613613        LPCTSTR str=value;
    614614        _tcscpy(tmp,str);
    615615        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)
    617617        {
    618618            RegSetValueEx(key, options[nOptionID-1].name, 0, REG_SZ, (unsigned char *)tmp, (_tcslen(tmp)+1)*sizeof(TCHAR) );
    619619            RegCloseKey(key);
     
    625625CString COptions::GetOption(int nOptionID)
    626626{
    627627    ASSERT(!options[nOptionID-1].nType);
    628    
     628
    629629    Init();
    630630    CSingleLock lock(&m_Sync, TRUE);
    631631
     
    634634    {
    635635        ASSERT(!m_OptionsCache[nOptionID-1].nType);
    636636        CTimeSpan span=CTime::GetCurrentTime()-m_OptionsCache[nOptionID-1].createtime;
    637         if (span.GetTotalSeconds()<120 || m_bUseXML)   
     637        if (span.GetTotalSeconds()<120 || m_bUseXML)
    638638            res=m_OptionsCache[nOptionID-1].str;
    639639        else
    640640            m_OptionsCache[nOptionID-1].bCached=FALSE;
     
    645645        unsigned long tmp=2000;
    646646        unsigned char *buffer=new unsigned char[2000];
    647647        BOOL exists = FALSE;
    648        
     648
    649649        if (RegOpenKey(HKEY_CURRENT_USER, _T("Software\\FileZilla"), &key)==ERROR_SUCCESS)
    650650        {
    651651            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)
    654654            {
    655655                exists=TRUE;
    656656                res=(LPTSTR)buffer;
    657657            }
    658658            RegCloseKey(key);
    659659        }
    660        
     660
    661661        if (!exists || (!_ttoi(res) && nOptionID==OPTION_RUNINSECUREMODE))
    662662        {
    663663            memset(buffer, 0, 2000);
     
    713713        HKEY key;
    714714        unsigned char *buffer = new unsigned char[200];
    715715        unsigned long tmp=100;
    716                
     716
    717717        if (RegOpenKey(HKEY_CURRENT_USER, _T("Software\\FileZilla") ,&key)==ERROR_SUCCESS)
    718718        {
    719719            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)
    721721            {
    722722                if (type == REG_DWORD)
    723723                {
    724                     if (tmp<=4) 
     724                    if (tmp<=4)
    725725                    {
    726726                        memcpy(&val,buffer,tmp);
    727727                        error=0;
     
    745745            }
    746746            RegCloseKey(key);
    747747        }
    748        
     748
    749749        if (error)
    750750        {
    751751            memset(buffer,0,100);
     
    756756                {
    757757                    if (type == REG_DWORD)
    758758                    {
    759                         if (tmp<=4) 
     759                        if (tmp<=4)
    760760                        {
    761761                            memcpy(&val,buffer,tmp);
    762762                            error=0;
     
    773773                        }
    774774                        if (i == 100)
    775775                            str[99] = 0;
    776                        
     776
    777777                        val = _ttoi(str);
    778778                        error = 0;
    779779                    }
     
    782782            }
    783783        }
    784784        delete [] buffer;
    785     }   
     785    }
    786786    switch (nOptionID)
    787787    {
    788788        case OPTION_KEEPALIVE:
     
    800800                val=30;
    801801            else if (val<15)
    802802                val=30;
    803             break;         
     803            break;
    804804        case OPTION_TIMEOUTLENGTH:
    805805            if (val<30)
    806806                val=30;
     
    932932    return val;
    933933}
    934934
    935 void COptions::OnOK() 
     935void COptions::OnOK()
    936936{
    937937    if (!UpdateData(true))
    938938        return;
     
    981981        CString str;
    982982        str.Format(IDS_OPTIONS_TIMEOUT, 0, 999);
    983983        AfxMessageBox(str, MB_ICONEXCLAMATION);
    984         return;         
     984        return;
    985985    }
    986    
    987    
     986
     987
    988988    int val=_ttoi(m_OptionsPage2.m_NumRetries);
    989989    if ((val<0)||(val>999))
    990990    {
     
    994994        str.Format(IDS_OPTIONS_NUMRETRIES,0,999);
    995995        AfxMessageBox(str,MB_ICONEXCLAMATION);
    996996        return;
    997            
     997
    998998    }
    999    
     999
    10001000    val=_ttoi(m_OptionsPage2.m_Delay);
    10011001    if ((val<0)||(val>999))
    10021002    {
     
    10061006        str.Format(IDS_OPTIONS_RETRYDELAY,0,999);
    10071007        AfxMessageBox(str,MB_ICONEXCLAMATION);
    10081008        return;
    1009            
     1009
    10101010    }
    1011    
     1011
    10121012    if (m_OptionsProxyPage.m_Type)
    10131013    {
    10141014        if (m_OptionsProxyPage.m_Host=="")
     
    10271027            return;
    10281028        }
    10291029    }
    1030    
     1030
    10311031    if (m_OptionsTypePage.m_AsciiFiles=="")
    10321032    {
    10331033        m_OptionsTypePage.m_AsciiFiles="";
     
    10401040        m_OptionsTypePage.m_AsciiFiles.TrimRight( _T(";") );
    10411041        m_OptionsTypePage.m_AsciiFiles+=";";
    10421042    }
    1043    
     1043
    10441044    if (m_OptionsGssPage.m_GssServers=="")
    10451045    {
    10461046        m_OptionsGssPage.m_GssServers="";
     
    10971097            if (i!=str.GetLength())
    10981098            {
    10991099                line=str.Left(i);
    1100            
     1100
    11011101                str=str.Mid(i+1);
    11021102                i=-1;
    11031103            }
     
    11331133            qpos=line.Find( _T("\"") );
    11341134            if (qpos==-1)
    11351135                continue;
    1136            
     1136
    11371137            ext=line.Left(qpos);
    11381138            ext.TrimLeft( _T(" ") );
    11391139            ext.TrimRight( _T(" ") );
     
    11591159            AfxMessageBox(IDS_OPTIONS_IDENTUSERID, MB_ICONEXCLAMATION);
    11601160            return;
    11611161        }
    1162        
     1162
    11631163        if(m_OptionsIdentPage.m_System.IsEmpty())
    11641164        {
    11651165            ShowPage(&m_OptionsIdentPage);
     
    11921192            {
    11931193                LPVOID ptr=0;
    11941194                UINT ptrlen;
    1195    
     1195
    11961196                TCHAR SubBlock[50];
    1197                
     1197
    11981198                // Structure used to store enumerated languages and code pages.
    11991199                struct LANGANDCODEPAGE {
    12001200                WORD wLanguage;
    12011201                WORD wCodePage;
    12021202                } *lpTranslate;
    1203    
     1203
    12041204                UINT cbTranslate;
    1205                
     1205
    12061206                // Read the list of languages and code pages.
    1207                 if (VerQueryValue(pBlock, 
     1207                if (VerQueryValue(pBlock,
    12081208                            TEXT("\\VarFileInfo\\Translation"),
    12091209                            (LPVOID*)&lpTranslate,
    12101210                            &cbTranslate))
    12111211                {
    12121212                    // Read the file description for each language and code page.
    1213                
    1214                     _stprintf( SubBlock, 
     1213
     1214                    _stprintf( SubBlock,
    12151215                        _T("\\StringFileInfo\\%04x%04x\\ProductName"),
    12161216                        lpTranslate[0].wLanguage,
    12171217                        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,
    12221222                                &ptrlen))
    12231223                    {
    12241224                        LPTSTR pname=(LPTSTR)ptr;
    12251225                        CString productname=pname;
    12261226                        if ( productname==_T("FileZilla Language DLL") )
    12271227                        {
    1228                             _stprintf( SubBlock, 
     1228                            _stprintf( SubBlock,
    12291229                            _T("\\StringFileInfo\\%04x%04x\\Comments"),
    12301230                            lpTranslate[0].wLanguage,
    12311231                            lpTranslate[0].wCodePage);
    1232                    
    1233                             if (VerQueryValue(pBlock, 
    1234                                 SubBlock, 
    1235                                 &ptr, 
     1232
     1233                            if (VerQueryValue(pBlock,
     1234                                SubBlock,
     1235                                &ptr,
    12361236                                &ptrlen))
    12371237                            {
    12381238                                LPTSTR comment=(LPTSTR)ptr;
    12391239                                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);
    12411241                            }
    12421242                        }
    12431243                    }
    1244                    
     1244
    12451245                }
    12461246            }
    12471247            delete [] str;
     
    13001300                UINT cbTranslate;
    13011301
    13021302                // Read the list of languages and code pages.
    1303                 if (VerQueryValue(pBlock, 
     1303                if (VerQueryValue(pBlock,
    13041304                            TEXT("\\VarFileInfo\\Translation"),
    13051305                            (LPVOID*)&lpTranslate,
    13061306                            &cbTranslate))
    13071307                {
    13081308                    // Read the file description for each language and code page.
    13091309
    1310                     _stprintf( SubBlock, 
     1310                    _stprintf( SubBlock,
    13111311                           _T("\\StringFileInfo\\%04x%04x\\ProductName"),
    13121312                           lpTranslate[0].wLanguage,
    13131313                           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,
    13181318                            &ptrlen))
    13191319                    {
    13201320                        LPTSTR pname=(LPTSTR)ptr;
    13211321                        CString productname=pname;
    13221322                        if ( productname==("FileZilla Language DLL") )
    13231323                        {
    1324                             _stprintf( SubBlock, 
     1324                            _stprintf( SubBlock,
    13251325                            _T("\\StringFileInfo\\%04x%04x\\Comments"),
    13261326                            lpTranslate[0].wLanguage,
    13271327                            lpTranslate[0].wCodePage);
    1328    
    1329                             if (VerQueryValue(pBlock, 
    1330                                 SubBlock, 
    1331                                 &ptr, 
     1328
     1329                            if (VerQueryValue(pBlock,
     1330                                SubBlock,
     1331                                &ptr,
    13321332                                &ptrlen))
    13331333                            {
    13341334                                LPTSTR comment=(LPTSTR)ptr;
     
    13501350                                                if (((CFileZillaApp *)AfxGetApp())->m_bLangSet)
    13511351                                                    FreeLibrary(AfxGetResourceHandle());
    13521352                                                ((CFileZillaApp *)AfxGetApp())->m_bLangSet=TRUE;
    1353        
     1353
    13541354                                                HINSTANCE dll=LoadLibrary(fn);
    13551355                                                if (dll)
    13561356                                                    AfxSetResourceHandle(dll);
     
    14441444    }
    14451445}
    14461446
    1447 void COptions::OnPhelp() 
     1447void COptions::OnPhelp()
    14481448{
    14491449    CString help=AfxGetApp()->m_pszHelpFilePath;
    14501450    help+="::/configuration.htm";
     
    14581458        #endif
    14591459
    14601460        if (pHtmlHelp)
    1461             pHtmlHelp(m_hWnd, help,HH_DISPLAY_TOC,0);   
     1461            pHtmlHelp(m_hWnd, help,HH_DISPLAY_TOC,0);
    14621462    }
    14631463}
    14641464
     
    14801480        return;
    14811481    else if (status.m_attribute&FILE_ATTRIBUTE_DIRECTORY)
    14821482        return;
    1483    
     1483
    14841484    if (!status.m_size)
    14851485    {
    14861486        m_bUseXML = TRUE;
     
    14941494        {
    14951495            if (!m_markup.FindChildElem( _T("Settings") ))
    14961496                m_markup.AddChildElem( _T("Settings") );
    1497            
     1497
    14981498            CString str;
    14991499            m_markup.IntoElem();
    15001500            str=m_markup.GetTagName();
     
    15731573            {
    15741574                if (!m_markup.FindChildElem( _T("Settings") ))
    15751575                    m_markup.AddChildElem( _T("Settings") );
    1576                
     1576
    15771577                CString str;
    15781578                m_markup.IntoElem();
    15791579                str=m_markup.GetTagName();
     
    17011701        else
    17021702            return TRUE;
    17031703    }
    1704     else 
     1704    else
    17051705        return FALSE;
    17061706}
    17071707
    17081708void COptions::GetKey(HKEY key, CString keyname, CString &value)
    17091709{
    17101710    unsigned char *buffer=new unsigned char[1000];
    1711    
     1711
    17121712    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)
    17141714        value="";
    1715     else 
     1715    else
    17161716        value=(LPTSTR)buffer;
    17171717    delete [] buffer;
    17181718    return;
     
    17281728void COptions::GetKey(HKEY key, CString keyname, __int64 &value)
    17291729{
    17301730    unsigned char *buffer=new unsigned char[1000];
    1731    
     1731
    17321732    unsigned long tmp=1000;
    17331733    if (RegQueryValueEx(key,keyname,NULL,NULL,buffer,&tmp)!=ERROR_SUCCESS)
    17341734        value=0;
    1735     else 
     1735    else
    17361736    {
    17371737        if (_tcslen((LPTSTR)buffer)>20)
    17381738            value=0;
     
    17881788{
    17891789    if (!pXML->FindChildElem( _T("Server") ))
    17901790        return FALSE;
    1791    
     1791
    17921792    server.host = pXML->GetChildAttrib( _T("Host") );
    17931793    server.port = _ttoi(pXML->GetChildAttrib( _T("Port") ));
    17941794    server.user = pXML->GetChildAttrib( _T("User") );
     
    18491849        return m_sConfigFile;
    18501850    else
    18511851        return ((CFileZillaApp *)AfxGetApp())->m_appPath + _T("FileZilla.xml");
    1852 }
    1853  No newline at end of file
     1852}
  • source/Options.h

    RCS file: /cvsroot/filezilla/FileZilla/source/Options.h,v
    retrieving revision 1.65
    diff -u -r1.65 Options.h
     
    5555#define OPTIONS_NUM 116
    5656
    5757/////////////////////////////////////////////////////////////////////////////
    58 // Dialogfeld COptions 
     58// Dialogfeld COptions
    5959class COptions : protected CSAPrefsDialog
    6060{
    6161// Konstruktion
     
    8787    static void GetKey(HKEY key, CString keyname, int &value);
    8888
    8989    static void SetConfig(LPCTSTR pConfigFile);
    90    
     90
    9191    COptions(CWnd* pParent = NULL);   // Standardkonstruktor
    9292    COptionsConnection m_OptionsFtpProxyPage;
    9393    COptionsConnection2 m_OptionsPage2;
     
    115115
    116116protected:
    117117    static CString GetSpeedLimitsString(SPEEDLIMITSLIST &list);
    118     static void FillSpeedLimitsListFromString(SPEEDLIMITSLIST &list, CString str); 
     118    static void FillSpeedLimitsListFromString(SPEEDLIMITSLIST &list, CString str);
    119119    static CMarkupSTL m_markup;
    120120    static void Init();
    121121    static BOOL m_bInitialized;
     
    139139    static CString GetXmlFileName();
    140140
    141141    static CString m_sConfigFile;
    142    
     142
    143143// Dialogfelddaten
    144144    //{{AFX_DATA(COptions)
    145145    enum { IDD = IDD_SAPREFS };
  • source/OptionsConnection2.cpp

    RCS file: /cvsroot/filezilla/FileZilla/source/OptionsConnection2.cpp,v
    retrieving revision 1.5
    diff -u -r1.5 OptionsConnection2.cpp
     
    2121#include "OptionsConnection2.h"
    2222
    2323/////////////////////////////////////////////////////////////////////////////
    24 // Eigenschaftenseite COptionsConnection2 
     24// Eigenschaftenseite COptionsConnection2
    2525
    2626IMPLEMENT_DYNCREATE(COptionsConnection2, CSAPrefsSubDlg)
    2727
     
    6666    //}}AFX_MSG_MAP
    6767END_MESSAGE_MAP()
    6868
    69 void COptionsConnection2::OnCheck1() 
     69void COptionsConnection2::OnCheck1()
    7070{
    7171    UpdateData(TRUE);
    7272    m_IntervalHighCtrl.EnableWindow(m_UseKeepAlive);
    7373    m_IntervalLowCtrl.EnableWindow(m_UseKeepAlive);
    7474}
    7575
    76 BOOL COptionsConnection2::OnInitDialog() 
     76BOOL COptionsConnection2::OnInitDialog()
    7777{
    7878    CSAPrefsSubDlg::OnInitDialog();
    79    
     79
    8080    m_IntervalHighCtrl.EnableWindow(m_UseKeepAlive);
    81     m_IntervalLowCtrl.EnableWindow(m_UseKeepAlive); 
     81    m_IntervalLowCtrl.EnableWindow(m_UseKeepAlive);
    8282    return TRUE;  // return TRUE unless you set the focus to a control
    8383                  // EXCEPTION: OCX-Eigenschaftenseiten sollten FALSE zurückgeben
    8484}
  • source/OptionsConnection2.h

    RCS file: /cvsroot/filezilla/FileZilla/source/OptionsConnection2.h,v
    retrieving revision 1.4
    diff -u -r1.4 OptionsConnection2.h
     
    1717// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
    1818
    1919/////////////////////////////////////////////////////////////////////////////
    20 // Dialogfeld COptionsConnection2 
     20// Dialogfeld COptionsConnection2
    2121
    2222#pragma once
    2323
  • source/resource.h

    RCS file: /cvsroot/filezilla/FileZilla/source/resource.h,v
    retrieving revision 1.116
    diff -u -r1.116 resource.h
     
    752752#define AFX_IDS_SCCLOSE                 0xEF06
    753753
    754754// Next default values for new objects
    755 // 
     755//
    756756#ifdef APSTUDIO_INVOKED
    757757#ifndef APSTUDIO_READONLY_SYMBOLS
    758758#define _APS_3D_CONTROLS                     1