From: Steve Brokenshire Date: Wed, 30 Dec 2015 00:22:36 +0000 (+0000) Subject: Implemented GEO and URL to use ContactDataObject. X-Git-Tag: release-0.09~130 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=2171887a85a5eca924e73c23422a9fcc91e11bb2;p=xestiaab%2F.git Implemented GEO and URL to use ContactDataObject. --- diff --git a/source/contacteditor/frmContactEditor-Load.cpp b/source/contacteditor/frmContactEditor-Load.cpp index d7f8134..14b20bd 100644 --- a/source/contacteditor/frmContactEditor-Load.cpp +++ b/source/contacteditor/frmContactEditor-Load.cpp @@ -236,6 +236,32 @@ bool frmContactEditor::LoadContact(wxString Filename){ &ContactEditorData.BusinessLanguageListPref, lboBusinessLanguages, &LangCount); + + // Process the geoposition (GEO). + + LoadData(&ContactEditorData.GeneralGeographyList, + &ContactEditorData.GeneralGeographyListPref, + lboGeoposition, + &ContactEditorData.HomeGeographyList, + &ContactEditorData.HomeGeographyListPref, + lboHomeGeoposition, + &ContactEditorData.BusinessGeographyList, + &ContactEditorData.BusinessGeographyListPref, + lboBusinessGeoposition, + &GeoCount); + + // Process the website (URL). + + LoadData(&ContactEditorData.GeneralWebsiteList, + &ContactEditorData.GeneralWebsiteListPref, + lboWebsites, + &ContactEditorData.HomeWebsiteList, + &ContactEditorData.HomeWebsiteListPref, + lboHomeWebsites, + &ContactEditorData.BusinessWebsiteList, + &ContactEditorData.BusinessWebsiteListPref, + lboBusinessWebsites, + &URLCount); for (std::map::iterator iter = ContactFileLines.begin(); iter != ContactFileLines.end(); ++iter){ @@ -422,25 +448,25 @@ bool frmContactEditor::LoadContact(wxString Filename){ LoadLanguage(wxSPropertySeg1, wxSPropertySeg2, &LangCount); - }*/ else if (wxSProperty == wxT("GEO")){ + } else if (wxSProperty == wxT("GEO")){ // See frmContactEditor-LoadGeo.cpp LoadGeo(wxSPropertySeg1, wxSPropertySeg2, &GeoCount); - } else if (wxSProperty == wxT("RELATED")){ + }*/ else if (wxSProperty == wxT("RELATED")){ // See fromContactEditor-LoadRelated.cpp LoadRelated(wxSPropertySeg1, wxSPropertySeg2, &RelatedCount); - } else if (wxSProperty == wxT("URL")){ + }/* else if (wxSProperty == wxT("URL")){ // See frmContactEditor-LoadURL.cpp LoadURL(wxSPropertySeg1, wxSPropertySeg2, &URLCount); - } else if (wxSProperty == wxT("TITLE")) { + }*/ else if (wxSProperty == wxT("TITLE")) { // See frmContactEditor-LoadTitle.cpp