From 6aea74e8b371da97bfc7d8e102e6b9a72767c875 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Wed, 30 Dec 2015 00:27:57 +0000 Subject: [PATCH] Implemented TITLE for ContactDataObject. --- .../contacteditor/frmContactEditor-Load.cpp | 21 +++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/source/contacteditor/frmContactEditor-Load.cpp b/source/contacteditor/frmContactEditor-Load.cpp index 14b20bd..7e35538 100644 --- a/source/contacteditor/frmContactEditor-Load.cpp +++ b/source/contacteditor/frmContactEditor-Load.cpp @@ -237,7 +237,7 @@ bool frmContactEditor::LoadContact(wxString Filename){ lboBusinessLanguages, &LangCount); - // Process the geoposition (GEO). + // Process the geopositiosn (GEO). LoadData(&ContactEditorData.GeneralGeographyList, &ContactEditorData.GeneralGeographyListPref, @@ -250,7 +250,7 @@ bool frmContactEditor::LoadContact(wxString Filename){ lboBusinessGeoposition, &GeoCount); - // Process the website (URL). + // Process the websites (URL). LoadData(&ContactEditorData.GeneralWebsiteList, &ContactEditorData.GeneralWebsiteListPref, @@ -263,6 +263,19 @@ bool frmContactEditor::LoadContact(wxString Filename){ lboBusinessWebsites, &URLCount); + // Process the titles (TITLE). + + LoadData(&ContactEditorData.GeneralTitleList, + &ContactEditorData.GeneralTitleListPref, + lboTitles, + &ContactEditorData.HomeTitleList, + &ContactEditorData.HomeTitleListPref, + lboHomeTitles, + &ContactEditorData.BusinessTitleList, + &ContactEditorData.BusinessTitleListPref, + lboBusinessTitles, + &TitleCount); + for (std::map::iterator iter = ContactFileLines.begin(); iter != ContactFileLines.end(); ++iter){ @@ -466,13 +479,13 @@ bool frmContactEditor::LoadContact(wxString Filename){ LoadURL(wxSPropertySeg1, wxSPropertySeg2, &URLCount); - }*/ else if (wxSProperty == wxT("TITLE")) { + } else if (wxSProperty == wxT("TITLE")) { // See frmContactEditor-LoadTitle.cpp LoadTitle(wxSPropertySeg1, wxSPropertySeg2, &TitleCount); - } else if (wxSProperty == wxT("ROLE")) { + }*/ else if (wxSProperty == wxT("ROLE")) { // See frmContactEditor-LoadRole.cpp -- 2.39.5