X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2Fcontacteditor%2FfrmContactEditor-Business.cpp;h=89175e797169ee4157e03174c839b04492e5eacd;hb=804f162ac221af8c1dc9fbdf5ff623d8c2880c9e;hp=62480c1cc7abcfcf09039178305b4b348eaa92ca;hpb=5b2b2bcea1ab1dfd2b74589573cd16ee9326c4b9;p=xestiaab%2F.git diff --git a/source/contacteditor/frmContactEditor-Business.cpp b/source/contacteditor/frmContactEditor-Business.cpp index 62480c1..89175e7 100644 --- a/source/contacteditor/frmContactEditor-Business.cpp +++ b/source/contacteditor/frmContactEditor-Business.cpp @@ -1,3 +1,21 @@ +// frmContactEditorBusiness.cpp - frmContactEditor Business 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::AddBusinessNickname( wxCommandEvent& event ) frmContactEditorNickname *frameCENickname = new frmContactEditorNickname ( this ); frameCENickname->SetEditorMode(FALSE, CE_WORK); - intResult = GetLastInt(&BusinessNicknamesList); - frameCENickname->SetupPointers(&BusinessNicknamesList, - &BusinessNicknamesListAltID, - &BusinessNicknamesListPID, - &BusinessNicknamesListType, - &BusinessNicknamesListLanguage, - &BusinessNicknamesListTokens, - &BusinessNicknamesListPref, + intResult = GetLastInt(&ContactEditorData.BusinessNicknamesList); + frameCENickname->SetupPointers(&ContactEditorData.BusinessNicknamesList, + &ContactEditorData.BusinessNicknamesListAltID, + &ContactEditorData.BusinessNicknamesListPID, + &ContactEditorData.BusinessNicknamesListType, + &ContactEditorData.BusinessNicknamesListLanguage, + &ContactEditorData.BusinessNicknamesListTokens, + &ContactEditorData.BusinessNicknamesListPref, lboBusinessNicknames, (intValueSeek)); frameCENickname->ShowModal(); @@ -48,13 +66,13 @@ void frmContactEditor::ModifyBusinessNickname( wxCommandEvent& event ) } frmContactEditorNickname *frameCENickname = new frmContactEditorNickname ( this ); - frameCENickname->SetupPointers(&BusinessNicknamesList, - &BusinessNicknamesListAltID, - &BusinessNicknamesListPID, - &BusinessNicknamesListType, - &BusinessNicknamesListLanguage, - &BusinessNicknamesListTokens, - &BusinessNicknamesListPref, + frameCENickname->SetupPointers(&ContactEditorData.BusinessNicknamesList, + &ContactEditorData.BusinessNicknamesListAltID, + &ContactEditorData.BusinessNicknamesListPID, + &ContactEditorData.BusinessNicknamesListType, + &ContactEditorData.BusinessNicknamesListLanguage, + &ContactEditorData.BusinessNicknamesListTokens, + &ContactEditorData.BusinessNicknamesListPref, lboBusinessNicknames, intSelectedData); frameCENickname->SetEditorMode(TRUE, CE_WORK); @@ -77,13 +95,13 @@ void frmContactEditor::DeleteBusinessNickname( wxCommandEvent& event ) lboBusinessNicknames->DeleteItem(longSelected); DeleteMapData(intSelectedData, - &BusinessNicknamesList, - &BusinessNicknamesListLanguage, - &BusinessNicknamesListAltID, - &BusinessNicknamesListPID, - &BusinessNicknamesListTokens, - &BusinessNicknamesListType, - &BusinessNicknamesListPref); + &ContactEditorData.BusinessNicknamesList, + &ContactEditorData.BusinessNicknamesListLanguage, + &ContactEditorData.BusinessNicknamesListAltID, + &ContactEditorData.BusinessNicknamesListPID, + &ContactEditorData.BusinessNicknamesListTokens, + &ContactEditorData.BusinessNicknamesListType, + &ContactEditorData.BusinessNicknamesListPref); } void frmContactEditor::AddBusinessAddress( wxCommandEvent& event ) @@ -92,22 +110,22 @@ void frmContactEditor::AddBusinessAddress( wxCommandEvent& event ) frmContactEditorAddress *frameCEAddress = new frmContactEditorAddress ( this ); frameCEAddress->SetEditorMode(FALSE, CE_WORK); - intResult = GetLastInt(&BusinessAddressList); - frameCEAddress->SetupPointers(&BusinessAddressList, - &BusinessAddressListTown, - &BusinessAddressListCounty, - &BusinessAddressListPostCode, - &BusinessAddressListCountry, - &BusinessAddressListLabel, - &BusinessAddressListLang, - &BusinessAddressListAltID, - &BusinessAddressListPID, - &BusinessAddressListTokens, - &BusinessAddressListGeo, - &BusinessAddressListTimezone, - &BusinessAddressListType, - &BusinessAddressListMediatype, - &BusinessAddressListPref, + intResult = GetLastInt(&ContactEditorData.BusinessAddressList); + frameCEAddress->SetupPointers(&ContactEditorData.BusinessAddressList, + &ContactEditorData.BusinessAddressListTown, + &ContactEditorData.BusinessAddressListCounty, + &ContactEditorData.BusinessAddressListPostCode, + &ContactEditorData.BusinessAddressListCountry, + &ContactEditorData.BusinessAddressListLabel, + &ContactEditorData.BusinessAddressListLang, + &ContactEditorData.BusinessAddressListAltID, + &ContactEditorData.BusinessAddressListPID, + &ContactEditorData.BusinessAddressListTokens, + &ContactEditorData.BusinessAddressListGeo, + &ContactEditorData.BusinessAddressListTimezone, + &ContactEditorData.BusinessAddressListType, + &ContactEditorData.BusinessAddressListMediatype, + &ContactEditorData.BusinessAddressListPref, lboBusinessAddresses, (intValueSeek)); frameCEAddress->ShowModal(); @@ -127,21 +145,21 @@ void frmContactEditor::ModifyBusinessAddress( wxCommandEvent& event ) } frmContactEditorAddress *frameCEAddress = new frmContactEditorAddress ( this ); - frameCEAddress->SetupPointers(&BusinessAddressList, - &BusinessAddressListTown, - &BusinessAddressListCounty, - &BusinessAddressListPostCode, - &BusinessAddressListCountry, - &BusinessAddressListLabel, - &BusinessAddressListLang, - &BusinessAddressListAltID, - &BusinessAddressListPID, - &BusinessAddressListTokens, - &BusinessAddressListGeo, - &BusinessAddressListTimezone, - &BusinessAddressListType, - &BusinessAddressListMediatype, - &BusinessAddressListPref, + frameCEAddress->SetupPointers(&ContactEditorData.BusinessAddressList, + &ContactEditorData.BusinessAddressListTown, + &ContactEditorData.BusinessAddressListCounty, + &ContactEditorData.BusinessAddressListPostCode, + &ContactEditorData.BusinessAddressListCountry, + &ContactEditorData.BusinessAddressListLabel, + &ContactEditorData.BusinessAddressListLang, + &ContactEditorData.BusinessAddressListAltID, + &ContactEditorData.BusinessAddressListPID, + &ContactEditorData.BusinessAddressListTokens, + &ContactEditorData.BusinessAddressListGeo, + &ContactEditorData.BusinessAddressListTimezone, + &ContactEditorData.BusinessAddressListType, + &ContactEditorData.BusinessAddressListMediatype, + &ContactEditorData.BusinessAddressListPref, lboBusinessAddresses, intSelectedData); frameCEAddress->SetEditorMode(TRUE, CE_WORK); @@ -162,15 +180,15 @@ void frmContactEditor::DeleteBusinessAddress( wxCommandEvent& event ) } lboBusinessAddresses->DeleteItem(longSelected); - DeleteMapData(intSelectedData, &BusinessAddressList, - &BusinessAddressListTown, &BusinessAddressListCounty, - &BusinessAddressListPostCode, &BusinessAddressListCountry, - &BusinessAddressList, &BusinessAddressListLabel, - &BusinessAddressListLang, &BusinessAddressListAltID, - &BusinessAddressListPID, &BusinessAddressListTokens, - &BusinessAddressListGeo, &BusinessAddressListTimezone, - &BusinessAddressListType, &BusinessAddressListMediatype, - &BusinessAddressListPref); + DeleteMapData(intSelectedData, &ContactEditorData.BusinessAddressList, + &ContactEditorData.BusinessAddressListTown, &ContactEditorData.BusinessAddressListCounty, + &ContactEditorData.BusinessAddressListPostCode, &ContactEditorData.BusinessAddressListCountry, + &ContactEditorData.BusinessAddressList, &ContactEditorData.BusinessAddressListLabel, + &ContactEditorData.BusinessAddressListLang, &ContactEditorData.BusinessAddressListAltID, + &ContactEditorData.BusinessAddressListPID, &ContactEditorData.BusinessAddressListTokens, + &ContactEditorData.BusinessAddressListGeo, &ContactEditorData.BusinessAddressListTimezone, + &ContactEditorData.BusinessAddressListType, &ContactEditorData.BusinessAddressListMediatype, + &ContactEditorData.BusinessAddressListPref); } @@ -180,13 +198,13 @@ void frmContactEditor::AddBusinessEmail( wxCommandEvent& event ) frmContactEditorEmail *frameCEEmail = new frmContactEditorEmail ( this ); frameCEEmail->SetEditorMode(FALSE, CE_WORK); - intResult = GetLastInt(&BusinessAddressList); - frameCEEmail->SetupPointers(&BusinessEmailList, - &BusinessEmailListAltID, - &BusinessEmailListPID, - &BusinessEmailListType, - &BusinessEmailListTokens, - &BusinessEmailListPref, + intResult = GetLastInt(&ContactEditorData.BusinessAddressList); + frameCEEmail->SetupPointers(&ContactEditorData.BusinessEmailList, + &ContactEditorData.BusinessEmailListAltID, + &ContactEditorData.BusinessEmailListPID, + &ContactEditorData.BusinessEmailListType, + &ContactEditorData.BusinessEmailListTokens, + &ContactEditorData.BusinessEmailListPref, lboBusinessEmail, (intValueSeek)); frameCEEmail->ShowModal(); @@ -206,12 +224,12 @@ void frmContactEditor::ModifyBusinessEmail( wxCommandEvent& event ) } frmContactEditorEmail *frameCEEmail = new frmContactEditorEmail ( this ); - frameCEEmail->SetupPointers(&BusinessEmailList, - &BusinessEmailListAltID, - &BusinessEmailListPID, - &BusinessEmailListType, - &BusinessEmailListTokens, - &BusinessEmailListPref, + frameCEEmail->SetupPointers(&ContactEditorData.BusinessEmailList, + &ContactEditorData.BusinessEmailListAltID, + &ContactEditorData.BusinessEmailListPID, + &ContactEditorData.BusinessEmailListType, + &ContactEditorData.BusinessEmailListTokens, + &ContactEditorData.BusinessEmailListPref, lboBusinessEmail, intSelectedData); frameCEEmail->SetEditorMode(TRUE, CE_WORK); @@ -233,10 +251,10 @@ void frmContactEditor::DeleteBusinessEmail( wxCommandEvent& event ) lboBusinessEmail->DeleteItem(longSelected); - DeleteMapData(intSelectedData, &BusinessEmailList, - &BusinessEmailListAltID, &BusinessEmailListPID, - &BusinessEmailListType, &BusinessEmailListTokens, - &BusinessEmailListPref); + DeleteMapData(intSelectedData, &ContactEditorData.BusinessEmailList, + &ContactEditorData.BusinessEmailListAltID, &ContactEditorData.BusinessEmailListPID, + &ContactEditorData.BusinessEmailListType, &ContactEditorData.BusinessEmailListTokens, + &ContactEditorData.BusinessEmailListPref); } @@ -246,14 +264,15 @@ void frmContactEditor::AddBusinessIM( wxCommandEvent& event ) frmContactEditorIM *frameCEIM = new frmContactEditorIM ( this ); frameCEIM->SetEditorMode(FALSE, CE_WORK); - intResult = GetLastInt(&BusinessIMList); - frameCEIM->SetupPointers(&BusinessIMList, - &BusinessIMListAltID, - &BusinessIMListPID, - &BusinessIMListType, - &BusinessIMListTokens, - &BusinessIMListMediatype, - &BusinessIMListPref, + intResult = GetLastInt(&ContactEditorData.BusinessIMList); + frameCEIM->SetupPointers(&ContactEditorData.BusinessIMList, + &ContactEditorData.BusinessIMListAltID, + &ContactEditorData.BusinessIMListPID, + &ContactEditorData.BusinessIMListType, + &ContactEditorData.BusinessIMListTypeInfo, + &ContactEditorData.BusinessIMListTokens, + &ContactEditorData.BusinessIMListMediatype, + &ContactEditorData.BusinessIMListPref, lboBusinessIM, (intValueSeek)); frameCEIM->ShowModal(); @@ -273,13 +292,14 @@ void frmContactEditor::ModifyBusinessIM( wxCommandEvent& event ) } frmContactEditorIM *frameCEIM = new frmContactEditorIM ( this ); - frameCEIM->SetupPointers(&BusinessIMList, - &BusinessIMListAltID, - &BusinessIMListPID, - &BusinessIMListType, - &BusinessIMListTokens, - &BusinessIMListMediatype, - &BusinessIMListPref, + frameCEIM->SetupPointers(&ContactEditorData.BusinessIMList, + &ContactEditorData.BusinessIMListAltID, + &ContactEditorData.BusinessIMListPID, + &ContactEditorData.BusinessIMListType, + &ContactEditorData.BusinessIMListTypeInfo, + &ContactEditorData.BusinessIMListTokens, + &ContactEditorData.BusinessIMListMediatype, + &ContactEditorData.BusinessIMListPref, lboBusinessIM, intSelectedData); frameCEIM->SetEditorMode(TRUE, CE_WORK); @@ -301,10 +321,11 @@ void frmContactEditor::DeleteBusinessIM( wxCommandEvent& event ) lboBusinessIM->DeleteItem(longSelected); - DeleteMapData(intSelectedData, &BusinessIMList, - &BusinessIMListAltID, &BusinessIMListPID, - &BusinessIMListType, &BusinessIMListTokens, - &BusinessIMListMediatype, &BusinessIMListPref); + DeleteMapData(intSelectedData, &ContactEditorData.BusinessIMList, + &ContactEditorData.BusinessIMListAltID, &ContactEditorData.BusinessIMListPID, + &ContactEditorData.BusinessIMListType, &ContactEditorData.BusinessIMListTypeInfo, + &ContactEditorData.BusinessIMListTokens, &ContactEditorData.BusinessIMListMediatype, + &ContactEditorData.BusinessIMListPref); } @@ -314,13 +335,14 @@ void frmContactEditor::AddBusinessTelephone( wxCommandEvent& event ) frmContactEditorTelephone *frameCETel = new frmContactEditorTelephone ( this ); frameCETel->SetEditorMode(FALSE, CE_WORK); - intResult = GetLastInt(&BusinessTelephoneList); - frameCETel->SetupPointers(&BusinessTelephoneList, - &BusinessTelephoneListAltID, - &BusinessTelephoneListPID, - &BusinessTelephoneListType, - &BusinessTelephoneListTokens, - &BusinessTelephoneListPref, + intResult = GetLastInt(&ContactEditorData.BusinessTelephoneList); + frameCETel->SetupPointers(&ContactEditorData.BusinessTelephoneList, + &ContactEditorData.BusinessTelephoneListAltID, + &ContactEditorData.BusinessTelephoneListPID, + &ContactEditorData.BusinessTelephoneListType, + &ContactEditorData.BusinessTelephoneListTypeInfo, + &ContactEditorData.BusinessTelephoneListTokens, + &ContactEditorData.BusinessTelephoneListPref, lboBusinessTelephone, (intValueSeek)); frameCETel->ShowModal(); @@ -340,12 +362,13 @@ void frmContactEditor::ModifyBusinessTelephone( wxCommandEvent& event ) } frmContactEditorTelephone *frameCETel = new frmContactEditorTelephone ( this ); - frameCETel->SetupPointers(&BusinessTelephoneList, - &BusinessTelephoneListAltID, - &BusinessTelephoneListPID, - &BusinessTelephoneListType, - &BusinessTelephoneListTokens, - &BusinessTelephoneListPref, + frameCETel->SetupPointers(&ContactEditorData.BusinessTelephoneList, + &ContactEditorData.BusinessTelephoneListAltID, + &ContactEditorData.BusinessTelephoneListPID, + &ContactEditorData.BusinessTelephoneListType, + &ContactEditorData.BusinessTelephoneListTypeInfo, + &ContactEditorData.BusinessTelephoneListTokens, + &ContactEditorData.BusinessTelephoneListPref, lboBusinessTelephone, intSelectedData); frameCETel->SetEditorMode(TRUE, CE_WORK); @@ -367,10 +390,10 @@ void frmContactEditor::DeleteBusinessTelephone( wxCommandEvent& event ) lboBusinessTelephone->DeleteItem(longSelected); - DeleteMapData(intSelectedData, &BusinessTelephoneList, - &BusinessTelephoneListAltID, &BusinessTelephoneListPID, - &BusinessTelephoneListType, &BusinessTelephoneListTokens, - &BusinessTelephoneListPref); + DeleteMapData(intSelectedData, &ContactEditorData.BusinessTelephoneList, + &ContactEditorData.BusinessTelephoneListAltID, &ContactEditorData.BusinessTelephoneListPID, + &ContactEditorData.BusinessTelephoneListType, &ContactEditorData.BusinessTelephoneListTypeInfo, + &ContactEditorData.BusinessTelephoneListTokens, &ContactEditorData.BusinessTelephoneListPref); } @@ -380,13 +403,13 @@ void frmContactEditor::AddBusinessLanguage( wxCommandEvent& event ) frmContactEditorLanguages *frameCELang = new frmContactEditorLanguages ( this ); frameCELang->SetEditorMode(FALSE, CE_WORK); - intResult = GetLastInt(&BusinessLanguageList); - frameCELang->SetupPointers(&BusinessLanguageList, - &BusinessLanguageListAltID, - &BusinessLanguageListPID, - &BusinessLanguageListType, - &BusinessLanguageListTokens, - &BusinessLanguageListPref, + intResult = GetLastInt(&ContactEditorData.BusinessLanguageList); + frameCELang->SetupPointers(&ContactEditorData.BusinessLanguageList, + &ContactEditorData.BusinessLanguageListAltID, + &ContactEditorData.BusinessLanguageListPID, + &ContactEditorData.BusinessLanguageListType, + &ContactEditorData.BusinessLanguageListTokens, + &ContactEditorData.BusinessLanguageListPref, lboBusinessLanguages, (intValueSeek)); frameCELang->ShowModal(); @@ -406,12 +429,12 @@ void frmContactEditor::ModifyBusinessLanguage( wxCommandEvent& event ) } frmContactEditorLanguages *frameCELang = new frmContactEditorLanguages ( this ); - frameCELang->SetupPointers(&BusinessLanguageList, - &BusinessLanguageListAltID, - &BusinessLanguageListPID, - &BusinessLanguageListType, - &BusinessLanguageListTokens, - &BusinessLanguageListPref, + frameCELang->SetupPointers(&ContactEditorData.BusinessLanguageList, + &ContactEditorData.BusinessLanguageListAltID, + &ContactEditorData.BusinessLanguageListPID, + &ContactEditorData.BusinessLanguageListType, + &ContactEditorData.BusinessLanguageListTokens, + &ContactEditorData.BusinessLanguageListPref, lboBusinessLanguages, intSelectedData); frameCELang->SetEditorMode(TRUE, CE_WORK); @@ -433,10 +456,10 @@ void frmContactEditor::DeleteBusinessLanguage( wxCommandEvent& event ) lboBusinessLanguages->DeleteItem(longSelected); - DeleteMapData(intSelectedData, &BusinessLanguageList, - &BusinessLanguageListAltID, &BusinessLanguageListPID, - &BusinessLanguageListType, &BusinessLanguageListTokens, - &BusinessLanguageListPref); + DeleteMapData(intSelectedData, &ContactEditorData.BusinessLanguageList, + &ContactEditorData.BusinessLanguageListAltID, &ContactEditorData.BusinessLanguageListPID, + &ContactEditorData.BusinessLanguageListType, &ContactEditorData.BusinessLanguageListTokens, + &ContactEditorData.BusinessLanguageListPref); } @@ -446,14 +469,14 @@ void frmContactEditor::AddBusinessTimezone( wxCommandEvent& event ) frmContactEditorTimezones *frameCETZ = new frmContactEditorTimezones ( this ); frameCETZ->SetEditorMode(FALSE, CE_WORK); - intResult = GetLastInt(&BusinessTZList); - frameCETZ->SetupPointers(&BusinessTZList, - &BusinessTZListAltID, - &BusinessTZListPID, - &BusinessTZListType, - &BusinessTZListTokens, - &BusinessTZListMediatype, - &BusinessTZListPref, + intResult = GetLastInt(&ContactEditorData.BusinessTZList); + frameCETZ->SetupPointers(&ContactEditorData.BusinessTZList, + &ContactEditorData.BusinessTZListAltID, + &ContactEditorData.BusinessTZListPID, + &ContactEditorData.BusinessTZListType, + &ContactEditorData.BusinessTZListTokens, + &ContactEditorData.BusinessTZListMediatype, + &ContactEditorData.BusinessTZListPref, lboBusinessTimezones, (intValueSeek)); frameCETZ->ShowModal(); @@ -473,13 +496,13 @@ void frmContactEditor::ModifyBusinessTimezone( wxCommandEvent& event ) } frmContactEditorTimezones *frameCETZ = new frmContactEditorTimezones ( this ); - frameCETZ->SetupPointers(&BusinessTZList, - &BusinessTZListAltID, - &BusinessTZListPID, - &BusinessTZListType, - &BusinessTZListTokens, - &BusinessTZListMediatype, - &BusinessTZListPref, + frameCETZ->SetupPointers(&ContactEditorData.BusinessTZList, + &ContactEditorData.BusinessTZListAltID, + &ContactEditorData.BusinessTZListPID, + &ContactEditorData.BusinessTZListType, + &ContactEditorData.BusinessTZListTokens, + &ContactEditorData.BusinessTZListMediatype, + &ContactEditorData.BusinessTZListPref, lboBusinessTimezones, intSelectedData); frameCETZ->SetEditorMode(TRUE, CE_WORK); @@ -501,10 +524,10 @@ void frmContactEditor::DeleteBusinessTimezone( wxCommandEvent& event ) lboBusinessTimezones->DeleteItem(longSelected); - DeleteMapData(intSelectedData, &BusinessTZList, - &BusinessTZListAltID, &BusinessTZListPID, - &BusinessTZListType, &BusinessTZListTokens, - &BusinessTZListMediatype, &BusinessTZListPref); + DeleteMapData(intSelectedData, &ContactEditorData.BusinessTZList, + &ContactEditorData.BusinessTZListAltID, &ContactEditorData.BusinessTZListPID, + &ContactEditorData.BusinessTZListType, &ContactEditorData.BusinessTZListTokens, + &ContactEditorData.BusinessTZListMediatype, &ContactEditorData.BusinessTZListPref); } @@ -514,14 +537,14 @@ void frmContactEditor::AddBusinessGeoposition( wxCommandEvent& event ) frmContactEditorGeoposition *frameCEGeo = new frmContactEditorGeoposition ( this ); frameCEGeo->SetEditorMode(FALSE, CE_WORK); - intResult = GetLastInt(&BusinessGeographyList); - frameCEGeo->SetupPointers(&BusinessGeographyList, - &BusinessGeographyListAltID, - &BusinessGeographyListPID, - &BusinessGeographyListType, - &BusinessGeographyListTokens, - &BusinessGeographyListMediatype, - &BusinessGeographyListPref, + intResult = GetLastInt(&ContactEditorData.BusinessGeographyList); + frameCEGeo->SetupPointers(&ContactEditorData.BusinessGeographyList, + &ContactEditorData.BusinessGeographyListAltID, + &ContactEditorData.BusinessGeographyListPID, + &ContactEditorData.BusinessGeographyListType, + &ContactEditorData.BusinessGeographyListTokens, + &ContactEditorData.BusinessGeographyListMediatype, + &ContactEditorData.BusinessGeographyListPref, lboBusinessGeoposition, (intValueSeek)); frameCEGeo->ShowModal(); @@ -541,13 +564,13 @@ void frmContactEditor::ModifyBusinessGeoposition( wxCommandEvent& event ) } frmContactEditorGeoposition *frameCEGeo = new frmContactEditorGeoposition ( this ); - frameCEGeo->SetupPointers(&BusinessGeographyList, - &BusinessGeographyListAltID, - &BusinessGeographyListPID, - &BusinessGeographyListType, - &BusinessGeographyListTokens, - &BusinessGeographyListMediatype, - &BusinessGeographyListPref, + frameCEGeo->SetupPointers(&ContactEditorData.BusinessGeographyList, + &ContactEditorData.BusinessGeographyListAltID, + &ContactEditorData.BusinessGeographyListPID, + &ContactEditorData.BusinessGeographyListType, + &ContactEditorData.BusinessGeographyListTokens, + &ContactEditorData.BusinessGeographyListMediatype, + &ContactEditorData.BusinessGeographyListPref, lboBusinessGeoposition, intSelectedData); frameCEGeo->SetEditorMode(TRUE, CE_WORK); @@ -569,10 +592,10 @@ void frmContactEditor::DeleteBusinessGeoposition( wxCommandEvent& event ) lboBusinessGeoposition->DeleteItem(longSelected); - DeleteMapData(intSelectedData, &BusinessGeographyList, - &BusinessGeographyListAltID, &BusinessGeographyListPID, - &BusinessGeographyListType, &BusinessGeographyListTokens, - &BusinessGeographyListMediatype, &BusinessGeographyListPref); + DeleteMapData(intSelectedData, &ContactEditorData.BusinessGeographyList, + &ContactEditorData.BusinessGeographyListAltID, &ContactEditorData.BusinessGeographyListPID, + &ContactEditorData.BusinessGeographyListType, &ContactEditorData.BusinessGeographyListTokens, + &ContactEditorData.BusinessGeographyListMediatype, &ContactEditorData.BusinessGeographyListPref); } @@ -582,14 +605,14 @@ void frmContactEditor::AddBusinessWebsite( wxCommandEvent& event ) frmContactEditorWebsites *frameCEWeb = new frmContactEditorWebsites ( this ); frameCEWeb->SetEditorMode(FALSE, CE_WORK); - intResult = GetLastInt(&BusinessWebsiteList); - frameCEWeb->SetupPointers(&BusinessWebsiteList, - &BusinessWebsiteListAltID, - &BusinessWebsiteListPID, - &BusinessWebsiteListType, - &BusinessWebsiteListTokens, - &BusinessWebsiteListMediatype, - &BusinessWebsiteListPref, + intResult = GetLastInt(&ContactEditorData.BusinessWebsiteList); + frameCEWeb->SetupPointers(&ContactEditorData.BusinessWebsiteList, + &ContactEditorData.BusinessWebsiteListAltID, + &ContactEditorData.BusinessWebsiteListPID, + &ContactEditorData.BusinessWebsiteListType, + &ContactEditorData.BusinessWebsiteListTokens, + &ContactEditorData.BusinessWebsiteListMediatype, + &ContactEditorData.BusinessWebsiteListPref, lboBusinessWebsites, (intValueSeek)); frameCEWeb->ShowModal(); @@ -609,13 +632,13 @@ void frmContactEditor::ModifyBusinessWebsite( wxCommandEvent& event ) } frmContactEditorWebsites *frameCEWeb = new frmContactEditorWebsites ( this ); - frameCEWeb->SetupPointers(&BusinessWebsiteList, - &BusinessWebsiteListAltID, - &BusinessWebsiteListPID, - &BusinessWebsiteListType, - &BusinessWebsiteListTokens, - &BusinessWebsiteListMediatype, - &BusinessWebsiteListPref, + frameCEWeb->SetupPointers(&ContactEditorData.BusinessWebsiteList, + &ContactEditorData.BusinessWebsiteListAltID, + &ContactEditorData.BusinessWebsiteListPID, + &ContactEditorData.BusinessWebsiteListType, + &ContactEditorData.BusinessWebsiteListTokens, + &ContactEditorData.BusinessWebsiteListMediatype, + &ContactEditorData.BusinessWebsiteListPref, lboBusinessWebsites, intSelectedData); frameCEWeb->SetEditorMode(TRUE, CE_WORK); @@ -637,10 +660,10 @@ void frmContactEditor::DeleteBusinessWebsite( wxCommandEvent& event ) lboBusinessWebsites->DeleteItem(longSelected); - DeleteMapData(intSelectedData, &BusinessWebsiteList, - &BusinessWebsiteListAltID, &BusinessWebsiteListPID, - &BusinessWebsiteListType, &BusinessWebsiteListTokens, - &BusinessWebsiteListMediatype, &BusinessWebsiteListPref); + DeleteMapData(intSelectedData, &ContactEditorData.BusinessWebsiteList, + &ContactEditorData.BusinessWebsiteListAltID, &ContactEditorData.BusinessWebsiteListPID, + &ContactEditorData.BusinessWebsiteListType, &ContactEditorData.BusinessWebsiteListTokens, + &ContactEditorData.BusinessWebsiteListMediatype, &ContactEditorData.BusinessWebsiteListPref); } @@ -650,14 +673,14 @@ void frmContactEditor::AddBusinessTitle( wxCommandEvent& event ) frmContactEditorTitles *frameCETitle = new frmContactEditorTitles ( this ); frameCETitle->SetEditorMode(FALSE, CE_WORK); - intResult = GetLastInt(&BusinessTitleList); - frameCETitle->SetupPointers(&BusinessTitleList, - &BusinessTitleListLanguage, - &BusinessTitleListAltID, - &BusinessTitleListPID, - &BusinessTitleListType, - &BusinessTitleListTokens, - &BusinessTitleListPref, + intResult = GetLastInt(&ContactEditorData.BusinessTitleList); + frameCETitle->SetupPointers(&ContactEditorData.BusinessTitleList, + &ContactEditorData.BusinessTitleListLanguage, + &ContactEditorData.BusinessTitleListAltID, + &ContactEditorData.BusinessTitleListPID, + &ContactEditorData.BusinessTitleListType, + &ContactEditorData.BusinessTitleListTokens, + &ContactEditorData.BusinessTitleListPref, lboBusinessTitles, (intValueSeek)); frameCETitle->ShowModal(); @@ -677,13 +700,13 @@ void frmContactEditor::ModifyBusinessTitle( wxCommandEvent& event ) } frmContactEditorTitles *frameCETitle = new frmContactEditorTitles ( this ); - frameCETitle->SetupPointers(&BusinessTitleList, - &BusinessTitleListLanguage, - &BusinessTitleListAltID, - &BusinessTitleListPID, - &BusinessTitleListType, - &BusinessTitleListTokens, - &BusinessTitleListPref, + frameCETitle->SetupPointers(&ContactEditorData.BusinessTitleList, + &ContactEditorData.BusinessTitleListLanguage, + &ContactEditorData.BusinessTitleListAltID, + &ContactEditorData.BusinessTitleListPID, + &ContactEditorData.BusinessTitleListType, + &ContactEditorData.BusinessTitleListTokens, + &ContactEditorData.BusinessTitleListPref, lboBusinessTitles, intSelectedData); frameCETitle->SetEditorMode(TRUE, CE_WORK); @@ -705,10 +728,10 @@ void frmContactEditor::DeleteBusinessTitle( wxCommandEvent& event ) lboTitles->DeleteItem(longSelected); - DeleteMapData(intSelectedData, &BusinessTitleList, - &BusinessTitleListLanguage, &BusinessTitleListAltID, - &BusinessTitleListPID, &BusinessTitleListType, - &BusinessTitleListTokens, &BusinessTitleListPref); + DeleteMapData(intSelectedData, &ContactEditorData.BusinessTitleList, + &ContactEditorData.BusinessTitleListLanguage, &ContactEditorData.BusinessTitleListAltID, + &ContactEditorData.BusinessTitleListPID, &ContactEditorData.BusinessTitleListType, + &ContactEditorData.BusinessTitleListTokens, &ContactEditorData.BusinessTitleListPref); } @@ -718,14 +741,14 @@ void frmContactEditor::AddBusinessRole( wxCommandEvent& event ) frmContactEditorRoles *frameCERole = new frmContactEditorRoles ( this ); frameCERole->SetEditorMode(FALSE, CE_WORK); - intResult = GetLastInt(&BusinessRoleList); - frameCERole->SetupPointers(&BusinessRoleList, - &BusinessRoleListLanguage, - &BusinessRoleListAltID, - &BusinessRoleListPID, - &BusinessRoleListType, - &BusinessRoleListTokens, - &BusinessRoleListPref, + intResult = GetLastInt(&ContactEditorData.BusinessRoleList); + frameCERole->SetupPointers(&ContactEditorData.BusinessRoleList, + &ContactEditorData.BusinessRoleListLanguage, + &ContactEditorData.BusinessRoleListAltID, + &ContactEditorData.BusinessRoleListPID, + &ContactEditorData.BusinessRoleListType, + &ContactEditorData.BusinessRoleListTokens, + &ContactEditorData.BusinessRoleListPref, lboBusinessRoles, (intValueSeek)); frameCERole->ShowModal(); @@ -745,13 +768,13 @@ void frmContactEditor::ModifyBusinessRole( wxCommandEvent& event ) } frmContactEditorRoles *frameCERole = new frmContactEditorRoles ( this ); - frameCERole->SetupPointers(&BusinessRoleList, - &BusinessRoleListLanguage, - &BusinessRoleListAltID, - &BusinessRoleListPID, - &BusinessRoleListType, - &BusinessRoleListTokens, - &BusinessRoleListPref, + frameCERole->SetupPointers(&ContactEditorData.BusinessRoleList, + &ContactEditorData.BusinessRoleListLanguage, + &ContactEditorData.BusinessRoleListAltID, + &ContactEditorData.BusinessRoleListPID, + &ContactEditorData.BusinessRoleListType, + &ContactEditorData.BusinessRoleListTokens, + &ContactEditorData.BusinessRoleListPref, lboBusinessRoles, intSelectedData); frameCERole->SetEditorMode(TRUE, CE_WORK); @@ -773,10 +796,10 @@ void frmContactEditor::DeleteBusinessRole( wxCommandEvent& event ) lboBusinessRoles->DeleteItem(longSelected); - DeleteMapData(intSelectedData, &BusinessRoleList, - &BusinessRoleListLanguage, &BusinessRoleListAltID, - &BusinessRoleListPID, &BusinessRoleListType, - &BusinessRoleListTokens, &BusinessRoleListPref); + DeleteMapData(intSelectedData, &ContactEditorData.BusinessRoleList, + &ContactEditorData.BusinessRoleListLanguage, &ContactEditorData.BusinessRoleListAltID, + &ContactEditorData.BusinessRoleListPID, &ContactEditorData.BusinessRoleListType, + &ContactEditorData.BusinessRoleListTokens, &ContactEditorData.BusinessRoleListPref); } @@ -786,15 +809,15 @@ void frmContactEditor::AddBusinessOrganisation( wxCommandEvent& event ) frmContactEditorOrganisations *frameCEOrg = new frmContactEditorOrganisations ( this ); frameCEOrg->SetEditorMode(FALSE, CE_WORK); - intResult = GetLastInt(&GeneralOrganisationsList); - frameCEOrg->SetupPointers(&GeneralOrganisationsList, - &BusinessOrganisationsListLanguage, - &BusinessOrganisationsListSortAs, - &BusinessOrganisationsListAltID, - &BusinessOrganisationsListPID, - &BusinessOrganisationsListType, - &BusinessOrganisationsListTokens, - &BusinessOrganisationsListPref, + intResult = GetLastInt(&ContactEditorData.BusinessOrganisationsList); + frameCEOrg->SetupPointers(&ContactEditorData.BusinessOrganisationsList, + &ContactEditorData.BusinessOrganisationsListLanguage, + &ContactEditorData.BusinessOrganisationsListSortAs, + &ContactEditorData.BusinessOrganisationsListAltID, + &ContactEditorData.BusinessOrganisationsListPID, + &ContactEditorData.BusinessOrganisationsListType, + &ContactEditorData.BusinessOrganisationsListTokens, + &ContactEditorData.BusinessOrganisationsListPref, lboBusinessOrganisations, (intValueSeek)); frameCEOrg->ShowModal(); @@ -814,14 +837,14 @@ void frmContactEditor::ModifyBusinessOrganisation( wxCommandEvent& event ) } frmContactEditorOrganisations *frameCEOrg = new frmContactEditorOrganisations ( this ); - frameCEOrg->SetupPointers(&BusinessOrganisationsList, - &BusinessOrganisationsListLanguage, - &BusinessOrganisationsListSortAs, - &BusinessOrganisationsListAltID, - &BusinessOrganisationsListPID, - &BusinessOrganisationsListType, - &BusinessOrganisationsListTokens, - &BusinessOrganisationsListPref, + frameCEOrg->SetupPointers(&ContactEditorData.BusinessOrganisationsList, + &ContactEditorData.BusinessOrganisationsListLanguage, + &ContactEditorData.BusinessOrganisationsListSortAs, + &ContactEditorData.BusinessOrganisationsListAltID, + &ContactEditorData.BusinessOrganisationsListPID, + &ContactEditorData.BusinessOrganisationsListType, + &ContactEditorData.BusinessOrganisationsListTokens, + &ContactEditorData.BusinessOrganisationsListPref, lboBusinessOrganisations, intSelectedData); frameCEOrg->SetEditorMode(TRUE, CE_WORK); @@ -843,11 +866,11 @@ void frmContactEditor::DeleteBusinessOrganisation( wxCommandEvent& event ) lboBusinessOrganisations->DeleteItem(longSelected); - DeleteMapData(intSelectedData, &BusinessOrganisationsList, - &BusinessOrganisationsListLanguage, &BusinessOrganisationsListSortAs, - &BusinessOrganisationsListAltID, &BusinessOrganisationsListPID, - &BusinessOrganisationsListType, &BusinessOrganisationsListTokens, - &BusinessOrganisationsListPref); + DeleteMapData(intSelectedData, &ContactEditorData.BusinessOrganisationsList, + &ContactEditorData.BusinessOrganisationsListLanguage, &ContactEditorData.BusinessOrganisationsListSortAs, + &ContactEditorData.BusinessOrganisationsListAltID, &ContactEditorData.BusinessOrganisationsListPID, + &ContactEditorData.BusinessOrganisationsListType, &ContactEditorData.BusinessOrganisationsListTokens, + &ContactEditorData.BusinessOrganisationsListPref); } @@ -857,14 +880,14 @@ void frmContactEditor::AddBusinessNote( wxCommandEvent& event ) frmContactEditorNotes *frameCENote = new frmContactEditorNotes ( this ); frameCENote->SetEditorMode(FALSE, CE_WORK); - intResult = GetLastInt(&BusinessNoteList); - frameCENote->SetupPointers(&BusinessNoteList, - &BusinessNoteListLanguage, - &BusinessNoteListAltID, - &BusinessNoteListPID, - &BusinessNoteListType, - &BusinessNoteListTokens, - &BusinessNoteListPref, + intResult = GetLastInt(&ContactEditorData.BusinessNoteList); + frameCENote->SetupPointers(&ContactEditorData.BusinessNoteList, + &ContactEditorData.BusinessNoteListLanguage, + &ContactEditorData.BusinessNoteListAltID, + &ContactEditorData.BusinessNoteListPID, + &ContactEditorData.BusinessNoteListType, + &ContactEditorData.BusinessNoteListTokens, + &ContactEditorData.BusinessNoteListPref, lboBusinessNotes, (intValueSeek)); frameCENote->ShowModal(); @@ -884,13 +907,13 @@ void frmContactEditor::ModifyBusinessNote( wxCommandEvent& event ) } frmContactEditorNotes *frameCENote = new frmContactEditorNotes ( this ); - frameCENote->SetupPointers(&BusinessNoteList, - &BusinessNoteListLanguage, - &BusinessNoteListAltID, - &BusinessNoteListPID, - &BusinessNoteListType, - &BusinessNoteListTokens, - &BusinessNoteListPref, + frameCENote->SetupPointers(&ContactEditorData.BusinessNoteList, + &ContactEditorData.BusinessNoteListLanguage, + &ContactEditorData.BusinessNoteListAltID, + &ContactEditorData.BusinessNoteListPID, + &ContactEditorData.BusinessNoteListType, + &ContactEditorData.BusinessNoteListTokens, + &ContactEditorData.BusinessNoteListPref, lboBusinessNotes, intSelectedData); frameCENote->SetEditorMode(TRUE, CE_WORK); @@ -912,9 +935,9 @@ void frmContactEditor::DeleteBusinessNote( wxCommandEvent& event ) lboBusinessNotes->DeleteItem(longSelected); - DeleteMapData(intSelectedData, &BusinessNoteList, - &BusinessNoteListLanguage, &BusinessNoteListAltID, - &BusinessNoteListPID, &BusinessNoteListType, - &BusinessNoteListTokens, &BusinessNoteListPref); + DeleteMapData(intSelectedData, &ContactEditorData.BusinessNoteList, + &ContactEditorData.BusinessNoteListLanguage, &ContactEditorData.BusinessNoteListAltID, + &ContactEditorData.BusinessNoteListPID, &ContactEditorData.BusinessNoteListType, + &ContactEditorData.BusinessNoteListTokens, &ContactEditorData.BusinessNoteListPref); }