X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2Fcontacteditor%2FfrmContactEditor-Home.cpp;h=82add88d36189b31756658ef4d2853fae03d1da1;hb=804f162ac221af8c1dc9fbdf5ff623d8c2880c9e;hp=1c8d9f5d18ed29fba9d6b9cdfe5990b0591d8805;hpb=5b2b2bcea1ab1dfd2b74589573cd16ee9326c4b9;p=xestiaab%2F.git diff --git a/source/contacteditor/frmContactEditor-Home.cpp b/source/contacteditor/frmContactEditor-Home.cpp index 1c8d9f5..82add88 100644 --- a/source/contacteditor/frmContactEditor-Home.cpp +++ b/source/contacteditor/frmContactEditor-Home.cpp @@ -1,3 +1,21 @@ +// frmContactEditor-Home.cpp - frmContactEditor Home tab subroutines. +// +// (c) 2012-2016 Xestia Software Development. +// +// This file is part of Xestia Address Book. +// +// Xestia Address Book is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by the +// Free Software Foundation, version 3 of the license. +// +// Xestia Address Book is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License along +// with Xestia Address Book. If not, see + #include "frmContactEditor.h" #include "frmContactEditorNickname.h" #include "frmContactEditorAddress.h" @@ -21,14 +39,14 @@ void frmContactEditor::AddHomeNickname( wxCommandEvent& event ) frmContactEditorNickname *frameCENickname = new frmContactEditorNickname ( this ); frameCENickname->SetEditorMode(FALSE, CE_HOME); - intResult = GetLastInt(&HomeNicknamesList); - frameCENickname->SetupPointers(&HomeNicknamesList, - &HomeNicknamesListAltID, - &HomeNicknamesListPID, - &HomeNicknamesListType, - &HomeNicknamesListLanguage, - &HomeNicknamesListTokens, - &HomeNicknamesListPref, + intResult = GetLastInt(&ContactEditorData.HomeNicknamesList); + frameCENickname->SetupPointers(&ContactEditorData.HomeNicknamesList, + &ContactEditorData.HomeNicknamesListAltID, + &ContactEditorData.HomeNicknamesListPID, + &ContactEditorData.HomeNicknamesListType, + &ContactEditorData.HomeNicknamesListLanguage, + &ContactEditorData.HomeNicknamesListTokens, + &ContactEditorData.HomeNicknamesListPref, lboHomeNicknames, (intValueSeek)); frameCENickname->ShowModal(); @@ -48,13 +66,13 @@ void frmContactEditor::ModifyHomeNickname( wxCommandEvent& event ) } frmContactEditorNickname *frameCENickname = new frmContactEditorNickname ( this ); - frameCENickname->SetupPointers(&HomeNicknamesList, - &HomeNicknamesListAltID, - &HomeNicknamesListPID, - &HomeNicknamesListType, - &HomeNicknamesListLanguage, - &HomeNicknamesListTokens, - &HomeNicknamesListPref, + frameCENickname->SetupPointers(&ContactEditorData.HomeNicknamesList, + &ContactEditorData.HomeNicknamesListAltID, + &ContactEditorData.HomeNicknamesListPID, + &ContactEditorData.HomeNicknamesListType, + &ContactEditorData.HomeNicknamesListLanguage, + &ContactEditorData.HomeNicknamesListTokens, + &ContactEditorData.HomeNicknamesListPref, lboHomeNicknames, intSelectedData); frameCENickname->SetEditorMode(TRUE, CE_HOME); @@ -78,13 +96,13 @@ void frmContactEditor::DeleteHomeNickname( wxCommandEvent& event ) lboHomeNicknames->DeleteItem(longSelected); DeleteMapData(intSelectedData, - &HomeNicknamesList, - &HomeNicknamesListLanguage, - &HomeNicknamesListAltID, - &HomeNicknamesListPID, - &HomeNicknamesListTokens, - &HomeNicknamesListType, - &HomeNicknamesListPref); + &ContactEditorData.HomeNicknamesList, + &ContactEditorData.HomeNicknamesListLanguage, + &ContactEditorData.HomeNicknamesListAltID, + &ContactEditorData.HomeNicknamesListPID, + &ContactEditorData.HomeNicknamesListTokens, + &ContactEditorData.HomeNicknamesListType, + &ContactEditorData.HomeNicknamesListPref); } @@ -94,22 +112,22 @@ void frmContactEditor::AddHomeAddress( wxCommandEvent& event ) frmContactEditorAddress *frameCEAddress = new frmContactEditorAddress ( this ); frameCEAddress->SetEditorMode(FALSE, CE_HOME); - intResult = GetLastInt(&HomeAddressList); - frameCEAddress->SetupPointers(&HomeAddressList, - &HomeAddressListTown, - &HomeAddressListCounty, - &HomeAddressListPostCode, - &HomeAddressListCountry, - &HomeAddressListLabel, - &HomeAddressListLang, - &HomeAddressListAltID, - &HomeAddressListPID, - &HomeAddressListTokens, - &HomeAddressListGeo, - &HomeAddressListTimezone, - &HomeAddressListType, - &HomeAddressListMediatype, - &HomeAddressListPref, + intResult = GetLastInt(&ContactEditorData.HomeAddressList); + frameCEAddress->SetupPointers(&ContactEditorData.HomeAddressList, + &ContactEditorData.HomeAddressListTown, + &ContactEditorData.HomeAddressListCounty, + &ContactEditorData.HomeAddressListPostCode, + &ContactEditorData.HomeAddressListCountry, + &ContactEditorData.HomeAddressListLabel, + &ContactEditorData.HomeAddressListLang, + &ContactEditorData.HomeAddressListAltID, + &ContactEditorData.HomeAddressListPID, + &ContactEditorData.HomeAddressListTokens, + &ContactEditorData.HomeAddressListGeo, + &ContactEditorData.HomeAddressListTimezone, + &ContactEditorData.HomeAddressListType, + &ContactEditorData.HomeAddressListMediatype, + &ContactEditorData.HomeAddressListPref, lboHomeAddresses, (intValueSeek)); frameCEAddress->ShowModal(); @@ -129,21 +147,21 @@ void frmContactEditor::ModifyHomeAddress( wxCommandEvent& event ) } frmContactEditorAddress *frameCEAddress = new frmContactEditorAddress ( this ); - frameCEAddress->SetupPointers(&HomeAddressList, - &HomeAddressListTown, - &HomeAddressListCounty, - &HomeAddressListPostCode, - &HomeAddressListCountry, - &HomeAddressListLabel, - &HomeAddressListLang, - &HomeAddressListAltID, - &HomeAddressListPID, - &HomeAddressListTokens, - &HomeAddressListGeo, - &HomeAddressListTimezone, - &HomeAddressListType, - &HomeAddressListMediatype, - &HomeAddressListPref, + frameCEAddress->SetupPointers(&ContactEditorData.HomeAddressList, + &ContactEditorData.HomeAddressListTown, + &ContactEditorData.HomeAddressListCounty, + &ContactEditorData.HomeAddressListPostCode, + &ContactEditorData.HomeAddressListCountry, + &ContactEditorData.HomeAddressListLabel, + &ContactEditorData.HomeAddressListLang, + &ContactEditorData.HomeAddressListAltID, + &ContactEditorData.HomeAddressListPID, + &ContactEditorData.HomeAddressListTokens, + &ContactEditorData.HomeAddressListGeo, + &ContactEditorData.HomeAddressListTimezone, + &ContactEditorData.HomeAddressListType, + &ContactEditorData.HomeAddressListMediatype, + &ContactEditorData.HomeAddressListPref, lboHomeAddresses, intSelectedData); frameCEAddress->SetEditorMode(TRUE, CE_HOME); @@ -166,15 +184,15 @@ void frmContactEditor::DeleteHomeAddress( wxCommandEvent& event ) lboHomeAddresses->DeleteItem(longSelected); - DeleteMapData(intSelectedData, &HomeAddressList, - &HomeAddressListTown, &HomeAddressListCounty, - &HomeAddressListPostCode, &HomeAddressListCountry, - &HomeAddressList, &HomeAddressListLabel, - &HomeAddressListLang, &HomeAddressListAltID, - &HomeAddressListPID, &HomeAddressListTokens, - &HomeAddressListGeo, &HomeAddressListTimezone, - &HomeAddressListType, &HomeAddressListMediatype, - &HomeAddressListPref); + DeleteMapData(intSelectedData, &ContactEditorData.HomeAddressList, + &ContactEditorData.HomeAddressListTown, &ContactEditorData.HomeAddressListCounty, + &ContactEditorData.HomeAddressListPostCode, &ContactEditorData.HomeAddressListCountry, + &ContactEditorData.HomeAddressList, &ContactEditorData.HomeAddressListLabel, + &ContactEditorData.HomeAddressListLang, &ContactEditorData.HomeAddressListAltID, + &ContactEditorData.HomeAddressListPID, &ContactEditorData.HomeAddressListTokens, + &ContactEditorData.HomeAddressListGeo, &ContactEditorData.HomeAddressListTimezone, + &ContactEditorData.HomeAddressListType, &ContactEditorData.HomeAddressListMediatype, + &ContactEditorData.HomeAddressListPref); } @@ -184,13 +202,13 @@ void frmContactEditor::AddHomeEmail( wxCommandEvent& event ) frmContactEditorEmail *frameCEEmail = new frmContactEditorEmail ( this ); frameCEEmail->SetEditorMode(FALSE, CE_HOME); - intResult = GetLastInt(&HomeAddressList); - frameCEEmail->SetupPointers(&HomeEmailList, - &HomeEmailListAltID, - &HomeEmailListPID, - &HomeEmailListType, - &HomeEmailListTokens, - &HomeEmailListPref, + intResult = GetLastInt(&ContactEditorData.HomeAddressList); + frameCEEmail->SetupPointers(&ContactEditorData.HomeEmailList, + &ContactEditorData.HomeEmailListAltID, + &ContactEditorData.HomeEmailListPID, + &ContactEditorData.HomeEmailListType, + &ContactEditorData.HomeEmailListTokens, + &ContactEditorData.HomeEmailListPref, lboHomeEmails, (intValueSeek)); frameCEEmail->ShowModal(); @@ -210,12 +228,12 @@ void frmContactEditor::ModifyHomeEmail( wxCommandEvent& event ) } frmContactEditorEmail *frameCEEmail = new frmContactEditorEmail ( this ); - frameCEEmail->SetupPointers(&HomeEmailList, - &HomeEmailListAltID, - &HomeEmailListPID, - &HomeEmailListType, - &HomeEmailListTokens, - &HomeEmailListPref, + frameCEEmail->SetupPointers(&ContactEditorData.HomeEmailList, + &ContactEditorData.HomeEmailListAltID, + &ContactEditorData.HomeEmailListPID, + &ContactEditorData.HomeEmailListType, + &ContactEditorData.HomeEmailListTokens, + &ContactEditorData.HomeEmailListPref, lboHomeEmails, intSelectedData); frameCEEmail->SetEditorMode(TRUE, CE_HOME); @@ -238,10 +256,10 @@ void frmContactEditor::DeleteHomeEmail( wxCommandEvent& event ) lboHomeEmails->DeleteItem(longSelected); - DeleteMapData(intSelectedData, &HomeEmailList, - &HomeEmailListAltID, &HomeEmailListPID, - &HomeEmailListType, &HomeEmailListTokens, - &HomeEmailListPref); + DeleteMapData(intSelectedData, &ContactEditorData.HomeEmailList, + &ContactEditorData.HomeEmailListAltID, &ContactEditorData.HomeEmailListPID, + &ContactEditorData.HomeEmailListType, &ContactEditorData.HomeEmailListTokens, + &ContactEditorData.HomeEmailListPref); } @@ -251,14 +269,15 @@ void frmContactEditor::AddHomeIM( wxCommandEvent& event ) frmContactEditorIM *frameCEIM = new frmContactEditorIM ( this ); frameCEIM->SetEditorMode(FALSE, CE_HOME); - intResult = GetLastInt(&HomeIMList); - frameCEIM->SetupPointers(&HomeIMList, - &HomeIMListAltID, - &HomeIMListPID, - &HomeIMListType, - &HomeIMListTokens, - &HomeIMListMediatype, - &HomeIMListPref, + intResult = GetLastInt(&ContactEditorData.HomeIMList); + frameCEIM->SetupPointers(&ContactEditorData.HomeIMList, + &ContactEditorData.HomeIMListAltID, + &ContactEditorData.HomeIMListPID, + &ContactEditorData.HomeIMListType, + &ContactEditorData.HomeIMListTypeInfo, + &ContactEditorData.HomeIMListTokens, + &ContactEditorData.HomeIMListMediatype, + &ContactEditorData.HomeIMListPref, lboHomeIM, (intValueSeek)); frameCEIM->ShowModal(); @@ -278,13 +297,14 @@ void frmContactEditor::ModifyHomeIM( wxCommandEvent& event ) } frmContactEditorIM *frameCEIM = new frmContactEditorIM ( this ); - frameCEIM->SetupPointers(&HomeIMList, - &HomeIMListAltID, - &HomeIMListPID, - &HomeIMListType, - &HomeIMListTokens, - &HomeIMListMediatype, - &HomeIMListPref, + frameCEIM->SetupPointers(&ContactEditorData.HomeIMList, + &ContactEditorData.HomeIMListAltID, + &ContactEditorData.HomeIMListPID, + &ContactEditorData.HomeIMListType, + &ContactEditorData.HomeIMListTypeInfo, + &ContactEditorData.HomeIMListTokens, + &ContactEditorData.HomeIMListMediatype, + &ContactEditorData.HomeIMListPref, lboHomeIM, intSelectedData); frameCEIM->SetEditorMode(TRUE, CE_HOME); @@ -306,10 +326,11 @@ void frmContactEditor::DeleteHomeIM( wxCommandEvent& event ) lboHomeIM->DeleteItem(longSelected); - DeleteMapData(intSelectedData, &HomeIMList, - &HomeIMListAltID, &HomeIMListPID, - &HomeIMListType, &HomeIMListTokens, - &HomeIMListMediatype, &HomeIMListPref); + DeleteMapData(intSelectedData, &ContactEditorData.HomeIMList, + &ContactEditorData.HomeIMListAltID, &ContactEditorData.HomeIMListPID, + &ContactEditorData.HomeIMListType, &ContactEditorData.HomeIMListTypeInfo, + &ContactEditorData.HomeIMListTokens, &ContactEditorData.HomeIMListMediatype, + &ContactEditorData.HomeIMListPref); } @@ -319,13 +340,14 @@ void frmContactEditor::AddHomeTelephone( wxCommandEvent& event ) frmContactEditorTelephone *frameCETel = new frmContactEditorTelephone ( this ); frameCETel->SetEditorMode(FALSE, CE_HOME); - intResult = GetLastInt(&HomeTelephoneList); - frameCETel->SetupPointers(&HomeTelephoneList, - &HomeTelephoneListAltID, - &HomeTelephoneListPID, - &HomeTelephoneListType, - &HomeTelephoneListTokens, - &HomeTelephoneListPref, + intResult = GetLastInt(&ContactEditorData.HomeTelephoneList); + frameCETel->SetupPointers(&ContactEditorData.HomeTelephoneList, + &ContactEditorData.HomeTelephoneListAltID, + &ContactEditorData.HomeTelephoneListPID, + &ContactEditorData.HomeTelephoneListType, + &ContactEditorData.HomeTelephoneListTypeInfo, + &ContactEditorData.HomeTelephoneListTokens, + &ContactEditorData.HomeTelephoneListPref, lboHomeTelephone, (intValueSeek)); frameCETel->ShowModal(); @@ -345,12 +367,13 @@ void frmContactEditor::ModifyHomeTelephone( wxCommandEvent& event ) } frmContactEditorTelephone *frameCETel = new frmContactEditorTelephone ( this ); - frameCETel->SetupPointers(&HomeTelephoneList, - &HomeTelephoneListAltID, - &HomeTelephoneListPID, - &HomeTelephoneListType, - &HomeTelephoneListTokens, - &HomeTelephoneListPref, + frameCETel->SetupPointers(&ContactEditorData.HomeTelephoneList, + &ContactEditorData.HomeTelephoneListAltID, + &ContactEditorData.HomeTelephoneListPID, + &ContactEditorData.HomeTelephoneListType, + &ContactEditorData.HomeTelephoneListTypeInfo, + &ContactEditorData.HomeTelephoneListTokens, + &ContactEditorData.HomeTelephoneListPref, lboHomeTelephone, intSelectedData); frameCETel->SetEditorMode(TRUE, CE_HOME); @@ -372,10 +395,10 @@ void frmContactEditor::DeleteHomeTelephone( wxCommandEvent& event ) lboHomeTelephone->DeleteItem(longSelected); - DeleteMapData(intSelectedData, &HomeTelephoneList, - &HomeTelephoneListAltID, &HomeTelephoneListPID, - &HomeTelephoneListType, &HomeTelephoneListTokens, - &HomeTelephoneListPref); + DeleteMapData(intSelectedData, &ContactEditorData.HomeTelephoneList, + &ContactEditorData.HomeTelephoneListAltID, &ContactEditorData.HomeTelephoneListPID, + &ContactEditorData.HomeTelephoneListType, &ContactEditorData.HomeTelephoneListTypeInfo, + &ContactEditorData.HomeTelephoneListTokens, &ContactEditorData.HomeTelephoneListPref); } @@ -385,13 +408,13 @@ void frmContactEditor::AddHomeLanguage( wxCommandEvent& event ) frmContactEditorLanguages *frameCELang = new frmContactEditorLanguages ( this ); frameCELang->SetEditorMode(FALSE, CE_HOME); - intResult = GetLastInt(&HomeLanguageList); - frameCELang->SetupPointers(&HomeLanguageList, - &HomeLanguageListAltID, - &HomeLanguageListPID, - &HomeLanguageListType, - &HomeLanguageListTokens, - &HomeLanguageListPref, + intResult = GetLastInt(&ContactEditorData.HomeLanguageList); + frameCELang->SetupPointers(&ContactEditorData.HomeLanguageList, + &ContactEditorData.HomeLanguageListAltID, + &ContactEditorData.HomeLanguageListPID, + &ContactEditorData.HomeLanguageListType, + &ContactEditorData.HomeLanguageListTokens, + &ContactEditorData.HomeLanguageListPref, lboHomeLanguages, (intValueSeek)); frameCELang->ShowModal(); @@ -411,12 +434,12 @@ void frmContactEditor::ModifyHomeLanguage( wxCommandEvent& event ) } frmContactEditorLanguages *frameCELang = new frmContactEditorLanguages ( this ); - frameCELang->SetupPointers(&HomeLanguageList, - &HomeLanguageListAltID, - &HomeLanguageListPID, - &HomeLanguageListType, - &HomeLanguageListTokens, - &HomeLanguageListPref, + frameCELang->SetupPointers(&ContactEditorData.HomeLanguageList, + &ContactEditorData.HomeLanguageListAltID, + &ContactEditorData.HomeLanguageListPID, + &ContactEditorData.HomeLanguageListType, + &ContactEditorData.HomeLanguageListTokens, + &ContactEditorData.HomeLanguageListPref, lboHomeLanguages, intSelectedData); frameCELang->SetEditorMode(TRUE, CE_HOME); @@ -438,10 +461,10 @@ void frmContactEditor::DeleteHomeLanguage( wxCommandEvent& event ) lboHomeLanguages->DeleteItem(longSelected); - DeleteMapData(intSelectedData, &HomeLanguageList, - &HomeLanguageListAltID, &HomeLanguageListPID, - &HomeLanguageListType, &HomeLanguageListTokens, - &HomeLanguageListPref); + DeleteMapData(intSelectedData, &ContactEditorData.HomeLanguageList, + &ContactEditorData.HomeLanguageListAltID, &ContactEditorData.HomeLanguageListPID, + &ContactEditorData.HomeLanguageListType, &ContactEditorData.HomeLanguageListTokens, + &ContactEditorData.HomeLanguageListPref); } @@ -451,14 +474,14 @@ void frmContactEditor::AddHomeTimezone( wxCommandEvent& event ) frmContactEditorTimezones *frameCETZ = new frmContactEditorTimezones ( this ); frameCETZ->SetEditorMode(FALSE, CE_HOME); - intResult = GetLastInt(&HomeTZList); - frameCETZ->SetupPointers(&HomeTZList, - &HomeTZListAltID, - &HomeTZListPID, - &HomeTZListType, - &HomeTZListTokens, - &HomeTZListMediatype, - &HomeTZListPref, + intResult = GetLastInt(&ContactEditorData.HomeTZList); + frameCETZ->SetupPointers(&ContactEditorData.HomeTZList, + &ContactEditorData.HomeTZListAltID, + &ContactEditorData.HomeTZListPID, + &ContactEditorData.HomeTZListType, + &ContactEditorData.HomeTZListTokens, + &ContactEditorData.HomeTZListMediatype, + &ContactEditorData.HomeTZListPref, lboHomeTimezones, (intValueSeek)); frameCETZ->ShowModal(); @@ -478,13 +501,13 @@ void frmContactEditor::ModifyHomeTimezone( wxCommandEvent& event ) } frmContactEditorTimezones *frameCETZ = new frmContactEditorTimezones ( this ); - frameCETZ->SetupPointers(&HomeTZList, - &HomeTZListAltID, - &HomeTZListPID, - &HomeTZListType, - &HomeTZListTokens, - &HomeTZListMediatype, - &HomeTZListPref, + frameCETZ->SetupPointers(&ContactEditorData.HomeTZList, + &ContactEditorData.HomeTZListAltID, + &ContactEditorData.HomeTZListPID, + &ContactEditorData.HomeTZListType, + &ContactEditorData.HomeTZListTokens, + &ContactEditorData.HomeTZListMediatype, + &ContactEditorData.HomeTZListPref, lboHomeTimezones, intSelectedData); frameCETZ->SetEditorMode(TRUE, CE_HOME); @@ -506,10 +529,10 @@ void frmContactEditor::DeleteHomeTimezone( wxCommandEvent& event ) lboHomeTimezones->DeleteItem(longSelected); - DeleteMapData(intSelectedData, &HomeTZList, - &HomeTZListAltID, &HomeTZListPID, - &HomeTZListType, &HomeTZListTokens, - &HomeTZListMediatype, &HomeTZListPref); + DeleteMapData(intSelectedData, &ContactEditorData.HomeTZList, + &ContactEditorData.HomeTZListAltID, &ContactEditorData.HomeTZListPID, + &ContactEditorData.HomeTZListType, &ContactEditorData.HomeTZListTokens, + &ContactEditorData.HomeTZListMediatype, &ContactEditorData.HomeTZListPref); } @@ -519,14 +542,14 @@ void frmContactEditor::AddHomeGeoposition( wxCommandEvent& event ) frmContactEditorGeoposition *frameCEGeo = new frmContactEditorGeoposition ( this ); frameCEGeo->SetEditorMode(FALSE, CE_HOME); - intResult = GetLastInt(&HomeGeographyList); - frameCEGeo->SetupPointers(&HomeGeographyList, - &HomeGeographyListAltID, - &HomeGeographyListPID, - &HomeGeographyListType, - &HomeGeographyListTokens, - &HomeGeographyListMediatype, - &HomeGeographyListPref, + intResult = GetLastInt(&ContactEditorData.HomeGeographyList); + frameCEGeo->SetupPointers(&ContactEditorData.HomeGeographyList, + &ContactEditorData.HomeGeographyListAltID, + &ContactEditorData.HomeGeographyListPID, + &ContactEditorData.HomeGeographyListType, + &ContactEditorData.HomeGeographyListTokens, + &ContactEditorData.HomeGeographyListMediatype, + &ContactEditorData.HomeGeographyListPref, lboHomeGeoposition, (intValueSeek)); frameCEGeo->ShowModal(); @@ -546,13 +569,13 @@ void frmContactEditor::ModifyHomeGeoposition( wxCommandEvent& event ) } frmContactEditorGeoposition *frameCEGeo = new frmContactEditorGeoposition ( this ); - frameCEGeo->SetupPointers(&HomeGeographyList, - &HomeGeographyListAltID, - &HomeGeographyListPID, - &HomeGeographyListType, - &HomeGeographyListTokens, - &HomeGeographyListMediatype, - &HomeGeographyListPref, + frameCEGeo->SetupPointers(&ContactEditorData.HomeGeographyList, + &ContactEditorData.HomeGeographyListAltID, + &ContactEditorData.HomeGeographyListPID, + &ContactEditorData.HomeGeographyListType, + &ContactEditorData.HomeGeographyListTokens, + &ContactEditorData.HomeGeographyListMediatype, + &ContactEditorData.HomeGeographyListPref, lboHomeGeoposition, intSelectedData); frameCEGeo->SetEditorMode(TRUE, CE_HOME); @@ -574,10 +597,10 @@ void frmContactEditor::DeleteHomeGeoposition( wxCommandEvent& event ) lboHomeGeoposition->DeleteItem(longSelected); - DeleteMapData(intSelectedData, &HomeGeographyList, - &HomeGeographyListAltID, &HomeGeographyListPID, - &HomeGeographyListType, &HomeGeographyListTokens, - &HomeGeographyListMediatype, &HomeGeographyListPref); + DeleteMapData(intSelectedData, &ContactEditorData.HomeGeographyList, + &ContactEditorData.HomeGeographyListAltID, &ContactEditorData.HomeGeographyListPID, + &ContactEditorData.HomeGeographyListType, &ContactEditorData.HomeGeographyListTokens, + &ContactEditorData.HomeGeographyListMediatype, &ContactEditorData.HomeGeographyListPref); } @@ -587,14 +610,14 @@ void frmContactEditor::AddHomeWebsite( wxCommandEvent& event ) frmContactEditorWebsites *frameCEWeb = new frmContactEditorWebsites ( this ); frameCEWeb->SetEditorMode(FALSE, CE_HOME); - intResult = GetLastInt(&HomeWebsiteList); - frameCEWeb->SetupPointers(&HomeWebsiteList, - &HomeWebsiteListAltID, - &HomeWebsiteListPID, - &HomeWebsiteListType, - &HomeWebsiteListTokens, - &HomeWebsiteListMediatype, - &HomeWebsiteListPref, + intResult = GetLastInt(&ContactEditorData.HomeWebsiteList); + frameCEWeb->SetupPointers(&ContactEditorData.HomeWebsiteList, + &ContactEditorData.HomeWebsiteListAltID, + &ContactEditorData.HomeWebsiteListPID, + &ContactEditorData.HomeWebsiteListType, + &ContactEditorData.HomeWebsiteListTokens, + &ContactEditorData.HomeWebsiteListMediatype, + &ContactEditorData.HomeWebsiteListPref, lboHomeWebsites, (intValueSeek)); frameCEWeb->ShowModal(); @@ -614,13 +637,13 @@ void frmContactEditor::ModifyHomeWebsite( wxCommandEvent& event ) } frmContactEditorWebsites *frameCEWeb = new frmContactEditorWebsites ( this ); - frameCEWeb->SetupPointers(&HomeWebsiteList, - &HomeWebsiteListAltID, - &HomeWebsiteListPID, - &HomeWebsiteListType, - &HomeWebsiteListTokens, - &HomeWebsiteListMediatype, - &HomeWebsiteListPref, + frameCEWeb->SetupPointers(&ContactEditorData.HomeWebsiteList, + &ContactEditorData.HomeWebsiteListAltID, + &ContactEditorData.HomeWebsiteListPID, + &ContactEditorData.HomeWebsiteListType, + &ContactEditorData.HomeWebsiteListTokens, + &ContactEditorData.HomeWebsiteListMediatype, + &ContactEditorData.HomeWebsiteListPref, lboHomeWebsites, intSelectedData); frameCEWeb->SetEditorMode(TRUE, CE_HOME); @@ -642,10 +665,10 @@ void frmContactEditor::DeleteHomeWebsite( wxCommandEvent& event ) lboHomeWebsites->DeleteItem(longSelected); - DeleteMapData(intSelectedData, &HomeWebsiteList, - &HomeWebsiteListAltID, &HomeWebsiteListPID, - &HomeWebsiteListType, &HomeWebsiteListTokens, - &HomeWebsiteListMediatype, &HomeWebsiteListPref); + DeleteMapData(intSelectedData, &ContactEditorData.HomeWebsiteList, + &ContactEditorData.HomeWebsiteListAltID, &ContactEditorData.HomeWebsiteListPID, + &ContactEditorData.HomeWebsiteListType, &ContactEditorData.HomeWebsiteListTokens, + &ContactEditorData.HomeWebsiteListMediatype, &ContactEditorData.HomeWebsiteListPref); } @@ -655,14 +678,14 @@ void frmContactEditor::AddHomeTitle( wxCommandEvent& event ) frmContactEditorTitles *frameCETitle = new frmContactEditorTitles ( this ); frameCETitle->SetEditorMode(FALSE, CE_HOME); - intResult = GetLastInt(&HomeTitleList); - frameCETitle->SetupPointers(&HomeTitleList, - &HomeTitleListLanguage, - &HomeTitleListAltID, - &HomeTitleListPID, - &HomeTitleListType, - &HomeTitleListTokens, - &HomeTitleListPref, + intResult = GetLastInt(&ContactEditorData.HomeTitleList); + frameCETitle->SetupPointers(&ContactEditorData.HomeTitleList, + &ContactEditorData.HomeTitleListLanguage, + &ContactEditorData.HomeTitleListAltID, + &ContactEditorData.HomeTitleListPID, + &ContactEditorData.HomeTitleListType, + &ContactEditorData.HomeTitleListTokens, + &ContactEditorData.HomeTitleListPref, lboHomeTitles, (intValueSeek)); frameCETitle->ShowModal(); @@ -682,13 +705,13 @@ void frmContactEditor::ModifyHomeTitle( wxCommandEvent& event ) } frmContactEditorTitles *frameCETitle = new frmContactEditorTitles ( this ); - frameCETitle->SetupPointers(&HomeTitleList, - &HomeTitleListLanguage, - &HomeTitleListAltID, - &HomeTitleListPID, - &HomeTitleListType, - &HomeTitleListTokens, - &HomeTitleListPref, + frameCETitle->SetupPointers(&ContactEditorData.HomeTitleList, + &ContactEditorData.HomeTitleListLanguage, + &ContactEditorData.HomeTitleListAltID, + &ContactEditorData.HomeTitleListPID, + &ContactEditorData.HomeTitleListType, + &ContactEditorData.HomeTitleListTokens, + &ContactEditorData.HomeTitleListPref, lboHomeTitles, intSelectedData); frameCETitle->SetEditorMode(TRUE, CE_HOME); @@ -710,10 +733,10 @@ void frmContactEditor::DeleteHomeTitle( wxCommandEvent& event ) lboHomeTitles->DeleteItem(longSelected); - DeleteMapData(intSelectedData, &HomeTitleList, - &HomeTitleListLanguage, &HomeTitleListAltID, - &HomeTitleListPID, &HomeTitleListType, - &HomeTitleListTokens, &HomeTitleListPref); + DeleteMapData(intSelectedData, &ContactEditorData.HomeTitleList, + &ContactEditorData.HomeTitleListLanguage, &ContactEditorData.HomeTitleListAltID, + &ContactEditorData.HomeTitleListPID, &ContactEditorData.HomeTitleListType, + &ContactEditorData.HomeTitleListTokens, &ContactEditorData.HomeTitleListPref); } @@ -723,14 +746,14 @@ void frmContactEditor::AddHomeRole( wxCommandEvent& event ) frmContactEditorRoles *frameCERole = new frmContactEditorRoles ( this ); frameCERole->SetEditorMode(FALSE, CE_HOME); - intResult = GetLastInt(&HomeRoleList); - frameCERole->SetupPointers(&HomeRoleList, - &HomeRoleListLanguage, - &HomeRoleListAltID, - &HomeRoleListPID, - &HomeRoleListType, - &HomeRoleListTokens, - &HomeRoleListPref, + intResult = GetLastInt(&ContactEditorData.HomeRoleList); + frameCERole->SetupPointers(&ContactEditorData.HomeRoleList, + &ContactEditorData.HomeRoleListLanguage, + &ContactEditorData.HomeRoleListAltID, + &ContactEditorData.HomeRoleListPID, + &ContactEditorData.HomeRoleListType, + &ContactEditorData.HomeRoleListTokens, + &ContactEditorData.HomeRoleListPref, lboHomeRoles, (intValueSeek)); frameCERole->ShowModal(); @@ -750,13 +773,13 @@ void frmContactEditor::ModifyHomeRole( wxCommandEvent& event ) } frmContactEditorRoles *frameCERole = new frmContactEditorRoles ( this ); - frameCERole->SetupPointers(&HomeRoleList, - &HomeRoleListLanguage, - &HomeRoleListAltID, - &HomeRoleListPID, - &HomeRoleListType, - &HomeRoleListTokens, - &HomeRoleListPref, + frameCERole->SetupPointers(&ContactEditorData.HomeRoleList, + &ContactEditorData.HomeRoleListLanguage, + &ContactEditorData.HomeRoleListAltID, + &ContactEditorData.HomeRoleListPID, + &ContactEditorData.HomeRoleListType, + &ContactEditorData.HomeRoleListTokens, + &ContactEditorData.HomeRoleListPref, lboHomeRoles, intSelectedData); frameCERole->SetEditorMode(TRUE, CE_HOME); @@ -778,10 +801,10 @@ void frmContactEditor::DeleteHomeRole( wxCommandEvent& event ) lboHomeRoles->DeleteItem(longSelected); - DeleteMapData(intSelectedData, &HomeRoleList, - &HomeRoleListLanguage, &HomeRoleListAltID, - &HomeRoleListPID, &HomeRoleListType, - &HomeRoleListTokens, &HomeRoleListPref); + DeleteMapData(intSelectedData, &ContactEditorData.HomeRoleList, + &ContactEditorData.HomeRoleListLanguage, &ContactEditorData.HomeRoleListAltID, + &ContactEditorData.HomeRoleListPID, &ContactEditorData.HomeRoleListType, + &ContactEditorData.HomeRoleListTokens, &ContactEditorData.HomeRoleListPref); } @@ -791,15 +814,15 @@ void frmContactEditor::AddHomeOrganisation( wxCommandEvent& event ) frmContactEditorOrganisations *frameCEOrg = new frmContactEditorOrganisations ( this ); frameCEOrg->SetEditorMode(FALSE, CE_HOME); - intResult = GetLastInt(&HomeOrganisationsList); - frameCEOrg->SetupPointers(&HomeOrganisationsList, - &HomeOrganisationsListLanguage, - &HomeOrganisationsListSortAs, - &HomeOrganisationsListAltID, - &HomeOrganisationsListPID, - &HomeOrganisationsListType, - &HomeOrganisationsListTokens, - &HomeOrganisationsListPref, + intResult = GetLastInt(&ContactEditorData.HomeOrganisationsList); + frameCEOrg->SetupPointers(&ContactEditorData.HomeOrganisationsList, + &ContactEditorData.HomeOrganisationsListLanguage, + &ContactEditorData.HomeOrganisationsListSortAs, + &ContactEditorData.HomeOrganisationsListAltID, + &ContactEditorData.HomeOrganisationsListPID, + &ContactEditorData.HomeOrganisationsListType, + &ContactEditorData.HomeOrganisationsListTokens, + &ContactEditorData.HomeOrganisationsListPref, lboHomeOrganisations, (intValueSeek)); frameCEOrg->ShowModal(); @@ -819,14 +842,14 @@ void frmContactEditor::ModifyHomeOrganisation( wxCommandEvent& event ) } frmContactEditorOrganisations *frameCEOrg = new frmContactEditorOrganisations ( this ); - frameCEOrg->SetupPointers(&HomeOrganisationsList, - &HomeOrganisationsListLanguage, - &HomeOrganisationsListSortAs, - &HomeOrganisationsListAltID, - &HomeOrganisationsListPID, - &HomeOrganisationsListType, - &HomeOrganisationsListTokens, - &HomeOrganisationsListPref, + frameCEOrg->SetupPointers(&ContactEditorData.HomeOrganisationsList, + &ContactEditorData.HomeOrganisationsListLanguage, + &ContactEditorData.HomeOrganisationsListSortAs, + &ContactEditorData.HomeOrganisationsListAltID, + &ContactEditorData.HomeOrganisationsListPID, + &ContactEditorData.HomeOrganisationsListType, + &ContactEditorData.HomeOrganisationsListTokens, + &ContactEditorData.HomeOrganisationsListPref, lboHomeOrganisations, intSelectedData); frameCEOrg->SetEditorMode(TRUE, CE_HOME); @@ -848,11 +871,11 @@ void frmContactEditor::DeleteHomeOrganisation( wxCommandEvent& event ) lboHomeOrganisations->DeleteItem(longSelected); - DeleteMapData(intSelectedData, &HomeOrganisationsList, - &HomeOrganisationsListLanguage, &HomeOrganisationsListSortAs, - &HomeOrganisationsListAltID, &HomeOrganisationsListPID, - &HomeOrganisationsListType, &HomeOrganisationsListTokens, - &HomeOrganisationsListPref); + DeleteMapData(intSelectedData, &ContactEditorData.HomeOrganisationsList, + &ContactEditorData.HomeOrganisationsListLanguage, &ContactEditorData.HomeOrganisationsListSortAs, + &ContactEditorData.HomeOrganisationsListAltID, &ContactEditorData.HomeOrganisationsListPID, + &ContactEditorData.HomeOrganisationsListType, &ContactEditorData.HomeOrganisationsListTokens, + &ContactEditorData.HomeOrganisationsListPref); } @@ -862,14 +885,14 @@ void frmContactEditor::AddHomeNote( wxCommandEvent& event ) frmContactEditorNotes *frameCENote = new frmContactEditorNotes ( this ); frameCENote->SetEditorMode(FALSE, CE_HOME); - intResult = GetLastInt(&HomeNoteList); - frameCENote->SetupPointers(&HomeNoteList, - &HomeNoteListLanguage, - &HomeNoteListAltID, - &HomeNoteListPID, - &HomeNoteListType, - &HomeNoteListTokens, - &HomeNoteListPref, + intResult = GetLastInt(&ContactEditorData.HomeNoteList); + frameCENote->SetupPointers(&ContactEditorData.HomeNoteList, + &ContactEditorData.HomeNoteListLanguage, + &ContactEditorData.HomeNoteListAltID, + &ContactEditorData.HomeNoteListPID, + &ContactEditorData.HomeNoteListType, + &ContactEditorData.HomeNoteListTokens, + &ContactEditorData.HomeNoteListPref, lboHomeNotes, (intValueSeek)); frameCENote->ShowModal(); @@ -889,13 +912,13 @@ void frmContactEditor::ModifyHomeNote( wxCommandEvent& event ) } frmContactEditorNotes *frameCENote = new frmContactEditorNotes ( this ); - frameCENote->SetupPointers(&HomeNoteList, - &HomeNoteListLanguage, - &HomeNoteListAltID, - &HomeNoteListPID, - &HomeNoteListType, - &HomeNoteListTokens, - &HomeNoteListPref, + frameCENote->SetupPointers(&ContactEditorData.HomeNoteList, + &ContactEditorData.HomeNoteListLanguage, + &ContactEditorData.HomeNoteListAltID, + &ContactEditorData.HomeNoteListPID, + &ContactEditorData.HomeNoteListType, + &ContactEditorData.HomeNoteListTokens, + &ContactEditorData.HomeNoteListPref, lboHomeNotes, intSelectedData); frameCENote->SetEditorMode(TRUE, CE_HOME); @@ -917,9 +940,9 @@ void frmContactEditor::DeleteHomeNote( wxCommandEvent& event ) lboNotes->DeleteItem(longSelected); - DeleteMapData(intSelectedData, &HomeNoteList, - &HomeNoteListLanguage, &HomeNoteListAltID, - &HomeNoteListPID, &HomeNoteListType, - &HomeNoteListTokens, &HomeNoteListPref); + DeleteMapData(intSelectedData, &ContactEditorData.HomeNoteList, + &ContactEditorData.HomeNoteListLanguage, &ContactEditorData.HomeNoteListAltID, + &ContactEditorData.HomeNoteListPID, &ContactEditorData.HomeNoteListType, + &ContactEditorData.HomeNoteListTokens, &ContactEditorData.HomeNoteListPref); }