X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2FfrmMain.cpp;h=35b3d7227cbcef1f39d2e6b9176f6b9c93ab8f3f;hb=3ee149974e5bf642259e0541016216e21ab892b7;hp=0500383aa2d87f15243e2fce448ca566185f740d;hpb=a4deb4d72448721584279013bedb6f9c8ceb23ac;p=xestiaab%2F.git diff --git a/source/frmMain.cpp b/source/frmMain.cpp index 0500383..35b3d72 100644 --- a/source/frmMain.cpp +++ b/source/frmMain.cpp @@ -43,7 +43,7 @@ #include "frmContact.h" #include "frmConflictResolution.h" #include "frmInvalidSSLCertificate.h" -#include "frmSearch.h" +#include "search/frmSearch.h" #include "frmSSLCertificate.h" #include "frmUpdate.h" #include "import/frmImportResults.h" @@ -909,8 +909,6 @@ void frmMain::ShowContactInfo( wxListEvent& event ) long intSelected = -1; long ContactSeekNum = -1; - // intSelected = lstContacts->GetSelection(); - // Check if several contacts have been selected. int ContactTotal = 0; @@ -1032,8 +1030,6 @@ void frmMain::ShowContactInfo( wxListEvent& event ) if (wxSPropertyNextLine.Mid(0, 1) == wxT(" ") || wxSPropertyNextLine.Mid(0, 1) == wxT("\t")){ wxSPropertyNextLine.Remove(0, 1); - //wxSPropertyNextLine.Trim(FALSE); - //ContactLine.Trim(); ContactLine.Append(wxSPropertyNextLine); } else { @@ -1180,9 +1176,7 @@ void frmMain::ShowContactEditorEdit( wxCommandEvent& event ) long intSelected = -1; long intContactSeekNum = -1; - - // intSelected = lstContacts->GetSelection(); - + intSelected = lstContacts->GetNextItem(intSelected, wxLIST_NEXT_ALL, wxLIST_STATE_SELECTED); @@ -1349,7 +1343,6 @@ void frmMain::OpenContactInfo( wxCommandEvent& event ) wxString setname, setvalue; vCard Person; wxString nextchar; - //std::fstream vcardfile; Person.LoadFile(uc->ContactFilename); @@ -1429,12 +1422,6 @@ void frmMain::LoadPreferences(){ AccountSyncTimers.clear(); - /* - for (int i = (preferences.accounts.GetCount() - 1); i > 0; --i){ - treAccounts->AppendItem(RootNode, preferences.accounts.GetAccountName(i)); - } - */ - wxString AccDir; wxString AccDirFull; wxString AccDirFullSfx; @@ -1478,7 +1465,7 @@ void frmMain::LoadPreferences(){ if (preferences.accounts.GetAccountType(i) == wxT("CardDAV") || preferences.accounts.GetAccountType(i) == wxT("carddav")){ - // Check if the directory exists before doing anything. + // TODO: Check if the directory exists before doing anything. @@ -1514,8 +1501,7 @@ void frmMain::LoadPreferences(){ wxString vCardFilename; wxString vCardDataString; wxString vCardFilenameFull; - //bool ProcFiles = FALSE; - + bool ProcFiles = vcardaccdir.GetFirst(&vCardFilename, wxEmptyString, wxDIR_FILES); while(ProcFiles){ @@ -1586,11 +1572,7 @@ void frmMain::ConflictResolution(wxCommandEvent& event){ vCardConflictObj *vCardConfObj = (vCardConflictObj*)event.GetClientData(); vCard *ClientDataPtr = vCardConfObj->vCardLocalData; vCard *ServerDataPtr = vCardConfObj->vCardServerData; - //vCard *ServerDataPtr = vCardConfObj->vCardServerData; - //wxString Moo = ClientDataPtr->WriteString(); - //vCard *ServerDataPtr = vCardConfObj->vCardServerData; frameCR->LoadData(ClientDataPtr, ServerDataPtr, &MemoryFileList); - //frameCR->LoadData(vCardConfObj->vCardLocalData, vCardConfObj->vCardServerData, &MemoryFileList); frameCR->ShowModal(); int FinalConflictResult = frameCR->GetResult(); @@ -1842,7 +1824,6 @@ void frmMain::OpenFindContactsWindow(wxCommandEvent& event){ void frmMain::RemoveContactsWindowPointer(wxCommandEvent& event){ - //frmSearch *frameSCH = static_cast(ActMgrPtr); void *frameSCH = (void*)event.GetClientData(); SearchWindowList.erase(frameSCH); @@ -1861,20 +1842,6 @@ void frmMain::RemoveContactEditorWindowPointer(wxCommandEvent& event){ } -void frmMain::UpdateWindowList(wxCommandEvent& event){ - - // Update the Window List. - - // Delete the existing items in the window menu. - - // Get the list of contacts. - - // Insert a separator. - - // Get the list of search windows. - -} - void frmMain::RevealContact(wxCommandEvent& event){ UCNotif *uc = (UCNotif*)event.GetClientData(); @@ -2387,15 +2354,7 @@ void frmMain::WindowEdit( wxCommandEvent &event ){ std::map::iterator MenuIter = WindowListPointersMenu.find(WData->WindowID); MenuIter->second->SetItemLabel(WindowTitle); - - //mnuWindow->FindChildItem(intID, &pos); - //wxMenuItem *mnuNewItem = new wxMenuItem(NULL, WData->WindowID, WindowTitle, WData->WindowID), wxEmptyString, wxITEM_NORMAL, NULL); - //mnuNewItem->SetId(WData->WindowID); - //ContactWindowListPointersMenu.insert(std::make_pair(WData->WindowID, mnuNewItem)); - //ContactWindowListPointers.insert(std::make_pair(WData->WindowID, WData->WindowPointer)); - //mnuWindow->Insert((pos + 1), mnuNewItem); - //this->Connect(mnuNewItem->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(frmMain::ShowContactWindow)); - + } else if (WData->DataType == 1){ // Get the window title and use that. @@ -2416,14 +2375,6 @@ void frmMain::WindowEdit( wxCommandEvent &event ){ } - //mnuWindow->FindChildItem(intID, &pos); - //wxMenuItem *mnuNewItem = new wxMenuItem(NULL, WData->WindowID, WindowTitle, WData->WindowID), wxEmptyString, wxITEM_NORMAL, NULL); - //mnuNewItem->SetId(WData->WindowID); - //ContactEditorWindowListPointersMenu.insert(std::make_pair(WData->WindowID, mnuNewItem)); - //ContactEditorWindowListPointers.insert(std::make_pair(WData->WindowID, WData->WindowPointer)); - //mnuWindow->Insert((pos + 1), mnuNewItem); - //this->Connect(mnuNewItem->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(frmMain::ShowContactEditorWindow)); - } delete WData;