void frmContactEditor::AddHomeNickname( wxCommandEvent& event )
{
- int intResult = 0;
-
- frmContactEditorNickname *frameCENickname = new frmContactEditorNickname ( this );
- frameCENickname->SetEditorMode(FALSE, CE_HOME);
- intResult = GetLastInt(&ContactEditorData.HomeNicknamesList);
- frameCENickname->SetupPointers(&ContactEditorData.HomeNicknamesList,
- &ContactEditorData.HomeNicknamesListAltID,
- &ContactEditorData.HomeNicknamesListPID,
- &ContactEditorData.HomeNicknamesListType,
- &ContactEditorData.HomeNicknamesListLanguage,
- &ContactEditorData.HomeNicknamesListTokens,
- &ContactEditorData.HomeNicknamesListPref,
- lboHomeNicknames,
- (intValueSeek));
- frameCENickname->ShowModal();
- delete frameCENickname;
- frameCENickname = NULL;
+
+ int intResult = 0;
+
+ frmContactEditorNickname *frameCENickname = new frmContactEditorNickname ( this );
+ frameCENickname->SetEditorMode(FALSE, CE_HOME);
+ intResult = GetLastInt(&ContactEditorData.HomeNicknamesList);
+ frameCENickname->SetupPointers(&ContactEditorData.HomeNicknamesList,
+ &ContactEditorData.HomeNicknamesListAltID,
+ &ContactEditorData.HomeNicknamesListPID,
+ &ContactEditorData.HomeNicknamesListType,
+ &ContactEditorData.HomeNicknamesListLanguage,
+ &ContactEditorData.HomeNicknamesListTokens,
+ &ContactEditorData.HomeNicknamesListPref,
+ lboHomeNicknames,
+ (intValueSeek));
+ frameCENickname->ShowModal();
+ delete frameCENickname;
+ frameCENickname = NULL;
+
}
void frmContactEditor::ModifyHomeNickname( wxCommandEvent& event )
{
- long longSelected = -1;
- int intSelectedData = 0;
-
- if (!GetSelectedItem(lboHomeNicknames,
- &longSelected,
- &intSelectedData)){
- return;
- }
-
- frmContactEditorNickname *frameCENickname = new frmContactEditorNickname ( this );
- frameCENickname->SetupPointers(&ContactEditorData.HomeNicknamesList,
- &ContactEditorData.HomeNicknamesListAltID,
- &ContactEditorData.HomeNicknamesListPID,
- &ContactEditorData.HomeNicknamesListType,
- &ContactEditorData.HomeNicknamesListLanguage,
- &ContactEditorData.HomeNicknamesListTokens,
- &ContactEditorData.HomeNicknamesListPref,
- lboHomeNicknames,
- intSelectedData);
- frameCENickname->SetEditorMode(TRUE, CE_HOME);
- frameCENickname->ShowModal();
- delete frameCENickname;
- frameCENickname = NULL;
+
+ long longSelected = -1;
+ int intSelectedData = 0;
+
+ if (!GetSelectedItem(lboHomeNicknames,
+ &longSelected,
+ &intSelectedData)){
+ return;
+ }
+
+ frmContactEditorNickname *frameCENickname = new frmContactEditorNickname ( this );
+ frameCENickname->SetupPointers(&ContactEditorData.HomeNicknamesList,
+ &ContactEditorData.HomeNicknamesListAltID,
+ &ContactEditorData.HomeNicknamesListPID,
+ &ContactEditorData.HomeNicknamesListType,
+ &ContactEditorData.HomeNicknamesListLanguage,
+ &ContactEditorData.HomeNicknamesListTokens,
+ &ContactEditorData.HomeNicknamesListPref,
+ lboHomeNicknames,
+ intSelectedData);
+ frameCENickname->SetEditorMode(TRUE, CE_HOME);
+ frameCENickname->ShowModal();
+ delete frameCENickname;
+ frameCENickname = NULL;
+
}
void frmContactEditor::DeleteHomeNickname( wxCommandEvent& event )
{
- long longSelected = -1;
- int intSelectedData = 0;
+ long longSelected = -1;
+ int intSelectedData = 0;
- if (!GetSelectedItem(lboHomeNicknames,
- &longSelected,
- &intSelectedData)){
- return;
- }
+ if (!GetSelectedItem(lboHomeNicknames,
+ &longSelected,
+ &intSelectedData)){
+ return;
+ }
- lboHomeNicknames->DeleteItem(longSelected);
-
- DeleteMapData(intSelectedData,
- &ContactEditorData.HomeNicknamesList,
- &ContactEditorData.HomeNicknamesListLanguage,
- &ContactEditorData.HomeNicknamesListAltID,
- &ContactEditorData.HomeNicknamesListPID,
- &ContactEditorData.HomeNicknamesListTokens,
- &ContactEditorData.HomeNicknamesListType,
- &ContactEditorData.HomeNicknamesListPref);
+ lboHomeNicknames->DeleteItem(longSelected);
+ DeleteMapData(intSelectedData,
+ &ContactEditorData.HomeNicknamesList,
+ &ContactEditorData.HomeNicknamesListLanguage,
+ &ContactEditorData.HomeNicknamesListAltID,
+ &ContactEditorData.HomeNicknamesListPID,
+ &ContactEditorData.HomeNicknamesListTokens,
+ &ContactEditorData.HomeNicknamesListType,
+ &ContactEditorData.HomeNicknamesListPref);
+
}
void frmContactEditor::AddHomeAddress( wxCommandEvent& event )
{
- int intResult = 0;
-
- frmContactEditorAddress *frameCEAddress = new frmContactEditorAddress ( this );
- frameCEAddress->SetEditorMode(FALSE, CE_HOME);
- 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();
- delete frameCEAddress;
- frameCEAddress = NULL;
+
+ int intResult = 0;
+
+ frmContactEditorAddress *frameCEAddress = new frmContactEditorAddress ( this );
+ frameCEAddress->SetEditorMode(FALSE, CE_HOME);
+ 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();
+ delete frameCEAddress;
+ frameCEAddress = NULL;
+
}
void frmContactEditor::ModifyHomeAddress( wxCommandEvent& event )
{
- long longSelected = -1;
- int intSelectedData = 0;
-
- if (!GetSelectedItem(lboHomeAddresses,
- &longSelected,
- &intSelectedData)){
- return;
- }
-
- frmContactEditorAddress *frameCEAddress = new frmContactEditorAddress ( this );
- 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);
- frameCEAddress->ShowModal();
- delete frameCEAddress;
- frameCEAddress = NULL;
+
+ long longSelected = -1;
+ int intSelectedData = 0;
+
+ if (!GetSelectedItem(lboHomeAddresses,
+ &longSelected,
+ &intSelectedData)){
+ return;
+ }
+
+ frmContactEditorAddress *frameCEAddress = new frmContactEditorAddress ( this );
+ 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);
+ frameCEAddress->ShowModal();
+ delete frameCEAddress;
+ frameCEAddress = NULL;
+
}
void frmContactEditor::DeleteHomeAddress( wxCommandEvent& event )
{
- long longSelected = -1;
- int intSelectedData = 0;
+ long longSelected = -1;
+ int intSelectedData = 0;
- if (!GetSelectedItem(lboHomeAddresses,
- &longSelected,
- &intSelectedData)){
- return;
- }
+ if (!GetSelectedItem(lboHomeAddresses,
+ &longSelected,
+ &intSelectedData)){
+ return;
+ }
- lboHomeAddresses->DeleteItem(longSelected);
+ lboHomeAddresses->DeleteItem(longSelected);
- 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);
+ 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);
}
void frmContactEditor::AddHomeEmail( wxCommandEvent& event )
{
- int intResult = 0;
-
- frmContactEditorEmail *frameCEEmail = new frmContactEditorEmail ( this );
- frameCEEmail->SetEditorMode(FALSE, CE_HOME);
- intResult = GetLastInt(&ContactEditorData.HomeAddressList);
- frameCEEmail->SetupPointers(&ContactEditorData.HomeEmailList,
- &ContactEditorData.HomeEmailListAltID,
- &ContactEditorData.HomeEmailListPID,
- &ContactEditorData.HomeEmailListType,
- &ContactEditorData.HomeEmailListTokens,
- &ContactEditorData.HomeEmailListPref,
- lboHomeEmails,
- (intValueSeek));
- frameCEEmail->ShowModal();
- delete frameCEEmail;
- frameCEEmail = NULL;
+
+ int intResult = 0;
+
+ frmContactEditorEmail *frameCEEmail = new frmContactEditorEmail ( this );
+ frameCEEmail->SetEditorMode(FALSE, CE_HOME);
+ intResult = GetLastInt(&ContactEditorData.HomeAddressList);
+ frameCEEmail->SetupPointers(&ContactEditorData.HomeEmailList,
+ &ContactEditorData.HomeEmailListAltID,
+ &ContactEditorData.HomeEmailListPID,
+ &ContactEditorData.HomeEmailListType,
+ &ContactEditorData.HomeEmailListTokens,
+ &ContactEditorData.HomeEmailListPref,
+ lboHomeEmails,
+ (intValueSeek));
+ frameCEEmail->ShowModal();
+ delete frameCEEmail;
+ frameCEEmail = NULL;
+
}
void frmContactEditor::ModifyHomeEmail( wxCommandEvent& event )
{
- long longSelected = -1;
- int intSelectedData = 0;
-
- if (!GetSelectedItem(lboHomeEmails,
- &longSelected,
- &intSelectedData)){
- return;
- }
-
- frmContactEditorEmail *frameCEEmail = new frmContactEditorEmail ( this );
- frameCEEmail->SetupPointers(&ContactEditorData.HomeEmailList,
- &ContactEditorData.HomeEmailListAltID,
- &ContactEditorData.HomeEmailListPID,
- &ContactEditorData.HomeEmailListType,
- &ContactEditorData.HomeEmailListTokens,
- &ContactEditorData.HomeEmailListPref,
- lboHomeEmails,
- intSelectedData);
- frameCEEmail->SetEditorMode(TRUE, CE_HOME);
- frameCEEmail->ShowModal();
- delete frameCEEmail;
- frameCEEmail = NULL;
+
+ long longSelected = -1;
+ int intSelectedData = 0;
+
+ if (!GetSelectedItem(lboHomeEmails,
+ &longSelected,
+ &intSelectedData)){
+ return;
+ }
+
+ frmContactEditorEmail *frameCEEmail = new frmContactEditorEmail ( this );
+ frameCEEmail->SetupPointers(&ContactEditorData.HomeEmailList,
+ &ContactEditorData.HomeEmailListAltID,
+ &ContactEditorData.HomeEmailListPID,
+ &ContactEditorData.HomeEmailListType,
+ &ContactEditorData.HomeEmailListTokens,
+ &ContactEditorData.HomeEmailListPref,
+ lboHomeEmails,
+ intSelectedData);
+ frameCEEmail->SetEditorMode(TRUE, CE_HOME);
+ frameCEEmail->ShowModal();
+ delete frameCEEmail;
+ frameCEEmail = NULL;
+
}
void frmContactEditor::DeleteHomeEmail( wxCommandEvent& event )
{
- long longSelected = -1;
- int intSelectedData = 0;
+
+ long longSelected = -1;
+ int intSelectedData = 0;
- if (!GetSelectedItem(lboHomeEmails,
- &longSelected,
- &intSelectedData)){
- return;
- }
+ if (!GetSelectedItem(lboHomeEmails,
+ &longSelected,
+ &intSelectedData)){
+ return;
+ }
- lboHomeEmails->DeleteItem(longSelected);
+ lboHomeEmails->DeleteItem(longSelected);
- DeleteMapData(intSelectedData, &ContactEditorData.HomeEmailList,
- &ContactEditorData.HomeEmailListAltID, &ContactEditorData.HomeEmailListPID,
- &ContactEditorData.HomeEmailListType, &ContactEditorData.HomeEmailListTokens,
- &ContactEditorData.HomeEmailListPref);
+ DeleteMapData(intSelectedData, &ContactEditorData.HomeEmailList,
+ &ContactEditorData.HomeEmailListAltID, &ContactEditorData.HomeEmailListPID,
+ &ContactEditorData.HomeEmailListType, &ContactEditorData.HomeEmailListTokens,
+ &ContactEditorData.HomeEmailListPref);
+
}
void frmContactEditor::AddHomeIM( wxCommandEvent& event )
{
- int intResult = 0;
-
- frmContactEditorIM *frameCEIM = new frmContactEditorIM ( this );
- frameCEIM->SetEditorMode(FALSE, CE_HOME);
- 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();
- delete frameCEIM;
- frameCEIM = NULL;
+
+ int intResult = 0;
+
+ frmContactEditorIM *frameCEIM = new frmContactEditorIM ( this );
+ frameCEIM->SetEditorMode(FALSE, CE_HOME);
+ 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();
+ delete frameCEIM;
+ frameCEIM = NULL;
+
}
void frmContactEditor::ModifyHomeIM( wxCommandEvent& event )
{
- long longSelected = -1;
- int intSelectedData = 0;
-
- if (!GetSelectedItem(lboHomeIM,
- &longSelected,
- &intSelectedData)){
- return;
- }
-
- frmContactEditorIM *frameCEIM = new frmContactEditorIM ( this );
- 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);
- frameCEIM->ShowModal();
- delete frameCEIM;
- frameCEIM = NULL;
+
+ long longSelected = -1;
+ int intSelectedData = 0;
+
+ if (!GetSelectedItem(lboHomeIM,
+ &longSelected,
+ &intSelectedData)){
+ return;
+ }
+
+ frmContactEditorIM *frameCEIM = new frmContactEditorIM ( this );
+ 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);
+ frameCEIM->ShowModal();
+ delete frameCEIM;
+ frameCEIM = NULL;
+
}
void frmContactEditor::DeleteHomeIM( wxCommandEvent& event )
{
- long longSelected = -1;
- int intSelectedData = 0;
+
+ long longSelected = -1;
+ int intSelectedData = 0;
- if (!GetSelectedItem(lboHomeIM,
- &longSelected,
- &intSelectedData)){
- return;
- }
+ if (!GetSelectedItem(lboHomeIM,
+ &longSelected,
+ &intSelectedData)){
+ return;
+ }
- lboHomeIM->DeleteItem(longSelected);
+ lboHomeIM->DeleteItem(longSelected);
- DeleteMapData(intSelectedData, &ContactEditorData.HomeIMList,
- &ContactEditorData.HomeIMListAltID, &ContactEditorData.HomeIMListPID,
- &ContactEditorData.HomeIMListType, &ContactEditorData.HomeIMListTypeInfo,
- &ContactEditorData.HomeIMListTokens, &ContactEditorData.HomeIMListMediatype,
- &ContactEditorData.HomeIMListPref);
+ DeleteMapData(intSelectedData, &ContactEditorData.HomeIMList,
+ &ContactEditorData.HomeIMListAltID, &ContactEditorData.HomeIMListPID,
+ &ContactEditorData.HomeIMListType, &ContactEditorData.HomeIMListTypeInfo,
+ &ContactEditorData.HomeIMListTokens, &ContactEditorData.HomeIMListMediatype,
+ &ContactEditorData.HomeIMListPref);
}
void frmContactEditor::AddHomeTelephone( wxCommandEvent& event )
{
- int intResult = 0;
-
- frmContactEditorTelephone *frameCETel = new frmContactEditorTelephone ( this );
- frameCETel->SetEditorMode(FALSE, CE_HOME);
- intResult = GetLastInt(&ContactEditorData.HomeTelephoneList);
- frameCETel->SetupPointers(&ContactEditorData.HomeTelephoneList,
- &ContactEditorData.HomeTelephoneListAltID,
- &ContactEditorData.HomeTelephoneListPID,
- &ContactEditorData.HomeTelephoneListType,
- &ContactEditorData.HomeTelephoneListTypeInfo,
- &ContactEditorData.HomeTelephoneListTokens,
- &ContactEditorData.HomeTelephoneListPref,
- lboHomeTelephone,
- (intValueSeek));
- frameCETel->ShowModal();
- delete frameCETel;
- frameCETel = NULL;
+
+ int intResult = 0;
+
+ frmContactEditorTelephone *frameCETel = new frmContactEditorTelephone ( this );
+ frameCETel->SetEditorMode(FALSE, CE_HOME);
+ intResult = GetLastInt(&ContactEditorData.HomeTelephoneList);
+ frameCETel->SetupPointers(&ContactEditorData.HomeTelephoneList,
+ &ContactEditorData.HomeTelephoneListAltID,
+ &ContactEditorData.HomeTelephoneListPID,
+ &ContactEditorData.HomeTelephoneListType,
+ &ContactEditorData.HomeTelephoneListTypeInfo,
+ &ContactEditorData.HomeTelephoneListTokens,
+ &ContactEditorData.HomeTelephoneListPref,
+ lboHomeTelephone,
+ (intValueSeek));
+ frameCETel->ShowModal();
+ delete frameCETel;
+ frameCETel = NULL;
+
}
void frmContactEditor::ModifyHomeTelephone( wxCommandEvent& event )
{
- long longSelected = -1;
- int intSelectedData = 0;
-
- if (!GetSelectedItem(lboHomeTelephone,
- &longSelected,
- &intSelectedData)){
- return;
- }
-
- frmContactEditorTelephone *frameCETel = new frmContactEditorTelephone ( this );
- frameCETel->SetupPointers(&ContactEditorData.HomeTelephoneList,
- &ContactEditorData.HomeTelephoneListAltID,
- &ContactEditorData.HomeTelephoneListPID,
- &ContactEditorData.HomeTelephoneListType,
- &ContactEditorData.HomeTelephoneListTypeInfo,
- &ContactEditorData.HomeTelephoneListTokens,
- &ContactEditorData.HomeTelephoneListPref,
- lboHomeTelephone,
- intSelectedData);
- frameCETel->SetEditorMode(TRUE, CE_HOME);
- frameCETel->ShowModal();
- delete frameCETel;
- frameCETel = NULL;
-}
+
+ long longSelected = -1;
+ int intSelectedData = 0;
+
+ if (!GetSelectedItem(lboHomeTelephone,
+ &longSelected,
+ &intSelectedData)){
+ return;
+ }
+
+ frmContactEditorTelephone *frameCETel = new frmContactEditorTelephone ( this );
+ frameCETel->SetupPointers(&ContactEditorData.HomeTelephoneList,
+ &ContactEditorData.HomeTelephoneListAltID,
+ &ContactEditorData.HomeTelephoneListPID,
+ &ContactEditorData.HomeTelephoneListType,
+ &ContactEditorData.HomeTelephoneListTypeInfo,
+ &ContactEditorData.HomeTelephoneListTokens,
+ &ContactEditorData.HomeTelephoneListPref,
+ lboHomeTelephone,
+ intSelectedData);
+ frameCETel->SetEditorMode(TRUE, CE_HOME);
+ frameCETel->ShowModal();
+ delete frameCETel;
+ frameCETel = NULL;
+
+}
void frmContactEditor::DeleteHomeTelephone( wxCommandEvent& event )
{
- long longSelected = -1;
- int intSelectedData = 0;
+
+ long longSelected = -1;
+ int intSelectedData = 0;
- if (!GetSelectedItem(lboHomeTelephone,
- &longSelected,
- &intSelectedData)){
- return;
- }
+ if (!GetSelectedItem(lboHomeTelephone,
+ &longSelected,
+ &intSelectedData)){
+ return;
+ }
- lboHomeTelephone->DeleteItem(longSelected);
+ lboHomeTelephone->DeleteItem(longSelected);
- DeleteMapData(intSelectedData, &ContactEditorData.HomeTelephoneList,
- &ContactEditorData.HomeTelephoneListAltID, &ContactEditorData.HomeTelephoneListPID,
- &ContactEditorData.HomeTelephoneListType, &ContactEditorData.HomeTelephoneListTypeInfo,
- &ContactEditorData.HomeTelephoneListTokens, &ContactEditorData.HomeTelephoneListPref);
+ DeleteMapData(intSelectedData, &ContactEditorData.HomeTelephoneList,
+ &ContactEditorData.HomeTelephoneListAltID, &ContactEditorData.HomeTelephoneListPID,
+ &ContactEditorData.HomeTelephoneListType, &ContactEditorData.HomeTelephoneListTypeInfo,
+ &ContactEditorData.HomeTelephoneListTokens, &ContactEditorData.HomeTelephoneListPref);
}
void frmContactEditor::AddHomeLanguage( wxCommandEvent& event )
{
- int intResult = 0;
-
- frmContactEditorLanguages *frameCELang = new frmContactEditorLanguages ( this );
- frameCELang->SetEditorMode(FALSE, CE_HOME);
- intResult = GetLastInt(&ContactEditorData.HomeLanguageList);
- frameCELang->SetupPointers(&ContactEditorData.HomeLanguageList,
- &ContactEditorData.HomeLanguageListAltID,
- &ContactEditorData.HomeLanguageListPID,
- &ContactEditorData.HomeLanguageListType,
- &ContactEditorData.HomeLanguageListTokens,
- &ContactEditorData.HomeLanguageListPref,
- lboHomeLanguages,
- (intValueSeek));
- frameCELang->ShowModal();
- delete frameCELang;
- frameCELang = NULL;
+ int intResult = 0;
+
+ frmContactEditorLanguages *frameCELang = new frmContactEditorLanguages ( this );
+ frameCELang->SetEditorMode(FALSE, CE_HOME);
+ intResult = GetLastInt(&ContactEditorData.HomeLanguageList);
+
+ frameCELang->SetupPointers(&ContactEditorData.HomeLanguageList,
+ &ContactEditorData.HomeLanguageListAltID,
+ &ContactEditorData.HomeLanguageListPID,
+ &ContactEditorData.HomeLanguageListType,
+ &ContactEditorData.HomeLanguageListTokens,
+ &ContactEditorData.HomeLanguageListPref,
+ lboHomeLanguages,
+ (intValueSeek));
+ frameCELang->ShowModal();
+ delete frameCELang;
+ frameCELang = NULL;
+
}
void frmContactEditor::ModifyHomeLanguage( wxCommandEvent& event )
{
- long longSelected = -1;
- int intSelectedData = 0;
-
- if (!GetSelectedItem(lboHomeLanguages,
- &longSelected,
- &intSelectedData)){
- return;
- }
-
- frmContactEditorLanguages *frameCELang = new frmContactEditorLanguages ( this );
- frameCELang->SetupPointers(&ContactEditorData.HomeLanguageList,
- &ContactEditorData.HomeLanguageListAltID,
- &ContactEditorData.HomeLanguageListPID,
- &ContactEditorData.HomeLanguageListType,
- &ContactEditorData.HomeLanguageListTokens,
- &ContactEditorData.HomeLanguageListPref,
- lboHomeLanguages,
- intSelectedData);
- frameCELang->SetEditorMode(TRUE, CE_HOME);
- frameCELang->ShowModal();
- delete frameCELang;
- frameCELang = NULL;
+
+ long longSelected = -1;
+ int intSelectedData = 0;
+
+ if (!GetSelectedItem(lboHomeLanguages,
+ &longSelected,
+ &intSelectedData)){
+ return;
+ }
+
+ frmContactEditorLanguages *frameCELang = new frmContactEditorLanguages ( this );
+ frameCELang->SetupPointers(&ContactEditorData.HomeLanguageList,
+ &ContactEditorData.HomeLanguageListAltID,
+ &ContactEditorData.HomeLanguageListPID,
+ &ContactEditorData.HomeLanguageListType,
+ &ContactEditorData.HomeLanguageListTokens,
+ &ContactEditorData.HomeLanguageListPref,
+ lboHomeLanguages,
+ intSelectedData);
+ frameCELang->SetEditorMode(TRUE, CE_HOME);
+ frameCELang->ShowModal();
+ delete frameCELang;
+ frameCELang = NULL;
+
}
void frmContactEditor::DeleteHomeLanguage( wxCommandEvent& event )
{
- long longSelected = -1;
- int intSelectedData = 0;
+
+ long longSelected = -1;
+ int intSelectedData = 0;
- if (!GetSelectedItem(lboHomeLanguages,
- &longSelected,
- &intSelectedData)){
- return;
- }
+ if (!GetSelectedItem(lboHomeLanguages,
+ &longSelected,
+ &intSelectedData)){
+ return;
+ }
- lboHomeLanguages->DeleteItem(longSelected);
+ lboHomeLanguages->DeleteItem(longSelected);
- DeleteMapData(intSelectedData, &ContactEditorData.HomeLanguageList,
- &ContactEditorData.HomeLanguageListAltID, &ContactEditorData.HomeLanguageListPID,
- &ContactEditorData.HomeLanguageListType, &ContactEditorData.HomeLanguageListTokens,
- &ContactEditorData.HomeLanguageListPref);
+ DeleteMapData(intSelectedData, &ContactEditorData.HomeLanguageList,
+ &ContactEditorData.HomeLanguageListAltID, &ContactEditorData.HomeLanguageListPID,
+ &ContactEditorData.HomeLanguageListType, &ContactEditorData.HomeLanguageListTokens,
+ &ContactEditorData.HomeLanguageListPref);
}
void frmContactEditor::AddHomeTimezone( wxCommandEvent& event )
{
- int intResult = 0;
-
- frmContactEditorTimezones *frameCETZ = new frmContactEditorTimezones ( this );
- frameCETZ->SetEditorMode(FALSE, CE_HOME);
- intResult = GetLastInt(&ContactEditorData.HomeTZList);
- frameCETZ->SetupPointers(&ContactEditorData.HomeTZList,
- &ContactEditorData.HomeTZListAltID,
- &ContactEditorData.HomeTZListPID,
- &ContactEditorData.HomeTZListType,
- &ContactEditorData.HomeTZListTokens,
- &ContactEditorData.HomeTZListMediatype,
- &ContactEditorData.HomeTZListPref,
- lboHomeTimezones,
- (intValueSeek));
- frameCETZ->ShowModal();
- delete frameCETZ;
- frameCETZ = NULL;
+
+ int intResult = 0;
+
+ frmContactEditorTimezones *frameCETZ = new frmContactEditorTimezones ( this );
+ frameCETZ->SetEditorMode(FALSE, CE_HOME);
+ intResult = GetLastInt(&ContactEditorData.HomeTZList);
+ frameCETZ->SetupPointers(&ContactEditorData.HomeTZList,
+ &ContactEditorData.HomeTZListAltID,
+ &ContactEditorData.HomeTZListPID,
+ &ContactEditorData.HomeTZListType,
+ &ContactEditorData.HomeTZListTokens,
+ &ContactEditorData.HomeTZListMediatype,
+ &ContactEditorData.HomeTZListPref,
+ lboHomeTimezones,
+ (intValueSeek));
+ frameCETZ->ShowModal();
+ delete frameCETZ;
+ frameCETZ = NULL;
+
}
void frmContactEditor::ModifyHomeTimezone( wxCommandEvent& event )
{
- long longSelected = -1;
- int intSelectedData = 0;
-
- if (!GetSelectedItem(lboHomeTimezones,
- &longSelected,
- &intSelectedData)){
- return;
- }
-
- frmContactEditorTimezones *frameCETZ = new frmContactEditorTimezones ( this );
- frameCETZ->SetupPointers(&ContactEditorData.HomeTZList,
- &ContactEditorData.HomeTZListAltID,
- &ContactEditorData.HomeTZListPID,
- &ContactEditorData.HomeTZListType,
- &ContactEditorData.HomeTZListTokens,
- &ContactEditorData.HomeTZListMediatype,
- &ContactEditorData.HomeTZListPref,
- lboHomeTimezones,
- intSelectedData);
- frameCETZ->SetEditorMode(TRUE, CE_HOME);
- frameCETZ->ShowModal();
- delete frameCETZ;
- frameCETZ = NULL;
+
+ long longSelected = -1;
+ int intSelectedData = 0;
+
+ if (!GetSelectedItem(lboHomeTimezones,
+ &longSelected,
+ &intSelectedData)){
+ return;
+ }
+
+ frmContactEditorTimezones *frameCETZ = new frmContactEditorTimezones ( this );
+ frameCETZ->SetupPointers(&ContactEditorData.HomeTZList,
+ &ContactEditorData.HomeTZListAltID,
+ &ContactEditorData.HomeTZListPID,
+ &ContactEditorData.HomeTZListType,
+ &ContactEditorData.HomeTZListTokens,
+ &ContactEditorData.HomeTZListMediatype,
+ &ContactEditorData.HomeTZListPref,
+ lboHomeTimezones,
+ intSelectedData);
+ frameCETZ->SetEditorMode(TRUE, CE_HOME);
+ frameCETZ->ShowModal();
+ delete frameCETZ;
+ frameCETZ = NULL;
+
}
void frmContactEditor::DeleteHomeTimezone( wxCommandEvent& event )
{
- long longSelected = -1;
- int intSelectedData = 0;
+ long longSelected = -1;
+ int intSelectedData = 0;
- if (!GetSelectedItem(lboHomeTimezones,
- &longSelected,
- &intSelectedData)){
- return;
- }
+ if (!GetSelectedItem(lboHomeTimezones,
+ &longSelected,
+ &intSelectedData)){
+ return;
+ }
- lboHomeTimezones->DeleteItem(longSelected);
+ lboHomeTimezones->DeleteItem(longSelected);
- DeleteMapData(intSelectedData, &ContactEditorData.HomeTZList,
- &ContactEditorData.HomeTZListAltID, &ContactEditorData.HomeTZListPID,
- &ContactEditorData.HomeTZListType, &ContactEditorData.HomeTZListTokens,
- &ContactEditorData.HomeTZListMediatype, &ContactEditorData.HomeTZListPref);
+ DeleteMapData(intSelectedData, &ContactEditorData.HomeTZList,
+ &ContactEditorData.HomeTZListAltID, &ContactEditorData.HomeTZListPID,
+ &ContactEditorData.HomeTZListType, &ContactEditorData.HomeTZListTokens,
+ &ContactEditorData.HomeTZListMediatype, &ContactEditorData.HomeTZListPref);
}
void frmContactEditor::AddHomeGeoposition( wxCommandEvent& event )
{
- int intResult = 0;
-
- frmContactEditorGeoposition *frameCEGeo = new frmContactEditorGeoposition ( this );
- frameCEGeo->SetEditorMode(FALSE, CE_HOME);
- intResult = GetLastInt(&ContactEditorData.HomeGeographyList);
- frameCEGeo->SetupPointers(&ContactEditorData.HomeGeographyList,
- &ContactEditorData.HomeGeographyListAltID,
- &ContactEditorData.HomeGeographyListPID,
- &ContactEditorData.HomeGeographyListType,
- &ContactEditorData.HomeGeographyListDataType,
- &ContactEditorData.HomeGeographyListTokens,
- &ContactEditorData.HomeGeographyListMediatype,
- &ContactEditorData.HomeGeographyListPref,
- lboHomeGeoposition,
- (intValueSeek));
- frameCEGeo->ShowModal();
- delete frameCEGeo;
- frameCEGeo = NULL;
+
+ int intResult = 0;
+
+ frmContactEditorGeoposition *frameCEGeo = new frmContactEditorGeoposition ( this );
+ frameCEGeo->SetEditorMode(FALSE, CE_HOME);
+ intResult = GetLastInt(&ContactEditorData.HomeGeographyList);
+ frameCEGeo->SetupPointers(&ContactEditorData.HomeGeographyList,
+ &ContactEditorData.HomeGeographyListAltID,
+ &ContactEditorData.HomeGeographyListPID,
+ &ContactEditorData.HomeGeographyListType,
+ &ContactEditorData.HomeGeographyListDataType,
+ &ContactEditorData.HomeGeographyListTokens,
+ &ContactEditorData.HomeGeographyListMediatype,
+ &ContactEditorData.HomeGeographyListPref,
+ lboHomeGeoposition,
+ (intValueSeek));
+ frameCEGeo->ShowModal();
+ delete frameCEGeo;
+ frameCEGeo = NULL;
+
}
void frmContactEditor::ModifyHomeGeoposition( wxCommandEvent& event )
{
- long longSelected = -1;
- int intSelectedData = 0;
-
- if (!GetSelectedItem(lboHomeGeoposition,
- &longSelected,
- &intSelectedData)){
- return;
- }
-
- frmContactEditorGeoposition *frameCEGeo = new frmContactEditorGeoposition ( this );
- frameCEGeo->SetupPointers(&ContactEditorData.HomeGeographyList,
- &ContactEditorData.HomeGeographyListAltID,
- &ContactEditorData.HomeGeographyListPID,
- &ContactEditorData.HomeGeographyListType,
- &ContactEditorData.HomeGeographyListDataType,
- &ContactEditorData.HomeGeographyListTokens,
- &ContactEditorData.HomeGeographyListMediatype,
- &ContactEditorData.HomeGeographyListPref,
- lboHomeGeoposition,
- intSelectedData);
- frameCEGeo->SetEditorMode(TRUE, CE_HOME);
- frameCEGeo->ShowModal();
- delete frameCEGeo;
- frameCEGeo = NULL;
+
+ long longSelected = -1;
+ int intSelectedData = 0;
+
+ if (!GetSelectedItem(lboHomeGeoposition,
+ &longSelected,
+ &intSelectedData)){
+ return;
+ }
+
+ frmContactEditorGeoposition *frameCEGeo = new frmContactEditorGeoposition ( this );
+ frameCEGeo->SetupPointers(&ContactEditorData.HomeGeographyList,
+ &ContactEditorData.HomeGeographyListAltID,
+ &ContactEditorData.HomeGeographyListPID,
+ &ContactEditorData.HomeGeographyListType,
+ &ContactEditorData.HomeGeographyListDataType,
+ &ContactEditorData.HomeGeographyListTokens,
+ &ContactEditorData.HomeGeographyListMediatype,
+ &ContactEditorData.HomeGeographyListPref,
+ lboHomeGeoposition,
+ intSelectedData);
+ frameCEGeo->SetEditorMode(TRUE, CE_HOME);
+ frameCEGeo->ShowModal();
+ delete frameCEGeo;
+ frameCEGeo = NULL;
+
}
void frmContactEditor::DeleteHomeGeoposition( wxCommandEvent& event )
{
- long longSelected = -1;
- int intSelectedData = 0;
+
+ long longSelected = -1;
+ int intSelectedData = 0;
- if (!GetSelectedItem(lboHomeGeoposition,
- &longSelected,
- &intSelectedData)){
- return;
- }
+ if (!GetSelectedItem(lboHomeGeoposition,
+ &longSelected,
+ &intSelectedData)){
+ return;
+ }
- lboHomeGeoposition->DeleteItem(longSelected);
+ lboHomeGeoposition->DeleteItem(longSelected);
- DeleteMapData(intSelectedData, &ContactEditorData.HomeGeographyList,
- &ContactEditorData.HomeGeographyListAltID, &ContactEditorData.HomeGeographyListPID,
- &ContactEditorData.HomeGeographyListType, &ContactEditorData.HomeGeographyListTokens,
- &ContactEditorData.HomeGeographyListDataType, &ContactEditorData.HomeGeographyListMediatype,
- &ContactEditorData.HomeGeographyListPref);
+ DeleteMapData(intSelectedData, &ContactEditorData.HomeGeographyList,
+ &ContactEditorData.HomeGeographyListAltID, &ContactEditorData.HomeGeographyListPID,
+ &ContactEditorData.HomeGeographyListType, &ContactEditorData.HomeGeographyListTokens,
+ &ContactEditorData.HomeGeographyListDataType, &ContactEditorData.HomeGeographyListMediatype,
+ &ContactEditorData.HomeGeographyListPref);
}
void frmContactEditor::AddHomeWebsite( wxCommandEvent& event )
{
- int intResult = 0;
-
- frmContactEditorWebsites *frameCEWeb = new frmContactEditorWebsites ( this );
- frameCEWeb->SetEditorMode(FALSE, CE_HOME);
- intResult = GetLastInt(&ContactEditorData.HomeWebsiteList);
- frameCEWeb->SetupPointers(&ContactEditorData.HomeWebsiteList,
- &ContactEditorData.HomeWebsiteListAltID,
- &ContactEditorData.HomeWebsiteListPID,
- &ContactEditorData.HomeWebsiteListType,
- &ContactEditorData.HomeWebsiteListTokens,
- &ContactEditorData.HomeWebsiteListMediatype,
- &ContactEditorData.HomeWebsiteListPref,
- lboHomeWebsites,
- (intValueSeek));
- frameCEWeb->ShowModal();
- delete frameCEWeb;
- frameCEWeb = NULL;
+
+ int intResult = 0;
+
+ frmContactEditorWebsites *frameCEWeb = new frmContactEditorWebsites ( this );
+ frameCEWeb->SetEditorMode(FALSE, CE_HOME);
+ intResult = GetLastInt(&ContactEditorData.HomeWebsiteList);
+ frameCEWeb->SetupPointers(&ContactEditorData.HomeWebsiteList,
+ &ContactEditorData.HomeWebsiteListAltID,
+ &ContactEditorData.HomeWebsiteListPID,
+ &ContactEditorData.HomeWebsiteListType,
+ &ContactEditorData.HomeWebsiteListTokens,
+ &ContactEditorData.HomeWebsiteListMediatype,
+ &ContactEditorData.HomeWebsiteListPref,
+ lboHomeWebsites,
+ (intValueSeek));
+ frameCEWeb->ShowModal();
+ delete frameCEWeb;
+ frameCEWeb = NULL;
+
}
void frmContactEditor::ModifyHomeWebsite( wxCommandEvent& event )
{
- long longSelected = -1;
- int intSelectedData = 0;
-
- if (!GetSelectedItem(lboHomeWebsites,
- &longSelected,
- &intSelectedData)){
- return;
- }
-
- frmContactEditorWebsites *frameCEWeb = new frmContactEditorWebsites ( this );
- frameCEWeb->SetupPointers(&ContactEditorData.HomeWebsiteList,
- &ContactEditorData.HomeWebsiteListAltID,
- &ContactEditorData.HomeWebsiteListPID,
- &ContactEditorData.HomeWebsiteListType,
- &ContactEditorData.HomeWebsiteListTokens,
- &ContactEditorData.HomeWebsiteListMediatype,
- &ContactEditorData.HomeWebsiteListPref,
- lboHomeWebsites,
- intSelectedData);
- frameCEWeb->SetEditorMode(TRUE, CE_HOME);
- frameCEWeb->ShowModal();
- delete frameCEWeb;
- frameCEWeb = NULL;
+
+ long longSelected = -1;
+ int intSelectedData = 0;
+
+ if (!GetSelectedItem(lboHomeWebsites,
+ &longSelected,
+ &intSelectedData)){
+ return;
+ }
+
+ frmContactEditorWebsites *frameCEWeb = new frmContactEditorWebsites ( this );
+ frameCEWeb->SetupPointers(&ContactEditorData.HomeWebsiteList,
+ &ContactEditorData.HomeWebsiteListAltID,
+ &ContactEditorData.HomeWebsiteListPID,
+ &ContactEditorData.HomeWebsiteListType,
+ &ContactEditorData.HomeWebsiteListTokens,
+ &ContactEditorData.HomeWebsiteListMediatype,
+ &ContactEditorData.HomeWebsiteListPref,
+ lboHomeWebsites,
+ intSelectedData);
+ frameCEWeb->SetEditorMode(TRUE, CE_HOME);
+ frameCEWeb->ShowModal();
+ delete frameCEWeb;
+ frameCEWeb = NULL;
+
}
void frmContactEditor::DeleteHomeWebsite( wxCommandEvent& event )
{
- long longSelected = -1;
- int intSelectedData = 0;
+
+ long longSelected = -1;
+ int intSelectedData = 0;
- if (!GetSelectedItem(lboHomeWebsites,
- &longSelected,
- &intSelectedData)){
- return;
- }
+ if (!GetSelectedItem(lboHomeWebsites,
+ &longSelected,
+ &intSelectedData)){
+ return;
+ }
- lboHomeWebsites->DeleteItem(longSelected);
+ lboHomeWebsites->DeleteItem(longSelected);
- DeleteMapData(intSelectedData, &ContactEditorData.HomeWebsiteList,
- &ContactEditorData.HomeWebsiteListAltID, &ContactEditorData.HomeWebsiteListPID,
- &ContactEditorData.HomeWebsiteListType, &ContactEditorData.HomeWebsiteListTokens,
- &ContactEditorData.HomeWebsiteListMediatype, &ContactEditorData.HomeWebsiteListPref);
+ DeleteMapData(intSelectedData, &ContactEditorData.HomeWebsiteList,
+ &ContactEditorData.HomeWebsiteListAltID, &ContactEditorData.HomeWebsiteListPID,
+ &ContactEditorData.HomeWebsiteListType, &ContactEditorData.HomeWebsiteListTokens,
+ &ContactEditorData.HomeWebsiteListMediatype, &ContactEditorData.HomeWebsiteListPref);
}
void frmContactEditor::AddHomeTitle( wxCommandEvent& event )
{
- int intResult = 0;
-
- frmContactEditorTitles *frameCETitle = new frmContactEditorTitles ( this );
- frameCETitle->SetEditorMode(FALSE, CE_HOME);
- intResult = GetLastInt(&ContactEditorData.HomeTitleList);
- frameCETitle->SetupPointers(&ContactEditorData.HomeTitleList,
- &ContactEditorData.HomeTitleListLanguage,
- &ContactEditorData.HomeTitleListAltID,
- &ContactEditorData.HomeTitleListPID,
- &ContactEditorData.HomeTitleListType,
- &ContactEditorData.HomeTitleListTokens,
- &ContactEditorData.HomeTitleListPref,
- lboHomeTitles,
- (intValueSeek));
- frameCETitle->ShowModal();
- delete frameCETitle;
- frameCETitle = NULL;
+
+ int intResult = 0;
+
+ frmContactEditorTitles *frameCETitle = new frmContactEditorTitles ( this );
+ frameCETitle->SetEditorMode(FALSE, CE_HOME);
+ intResult = GetLastInt(&ContactEditorData.HomeTitleList);
+ frameCETitle->SetupPointers(&ContactEditorData.HomeTitleList,
+ &ContactEditorData.HomeTitleListLanguage,
+ &ContactEditorData.HomeTitleListAltID,
+ &ContactEditorData.HomeTitleListPID,
+ &ContactEditorData.HomeTitleListType,
+ &ContactEditorData.HomeTitleListTokens,
+ &ContactEditorData.HomeTitleListPref,
+ lboHomeTitles,
+ (intValueSeek));
+ frameCETitle->ShowModal();
+ delete frameCETitle;
+ frameCETitle = NULL;
+
}
void frmContactEditor::ModifyHomeTitle( wxCommandEvent& event )
{
- long longSelected = -1;
- int intSelectedData = 0;
-
- if (!GetSelectedItem(lboHomeTitles,
- &longSelected,
- &intSelectedData)){
- return;
- }
-
- frmContactEditorTitles *frameCETitle = new frmContactEditorTitles ( this );
- frameCETitle->SetupPointers(&ContactEditorData.HomeTitleList,
- &ContactEditorData.HomeTitleListLanguage,
- &ContactEditorData.HomeTitleListAltID,
- &ContactEditorData.HomeTitleListPID,
- &ContactEditorData.HomeTitleListType,
- &ContactEditorData.HomeTitleListTokens,
- &ContactEditorData.HomeTitleListPref,
- lboHomeTitles,
- intSelectedData);
- frameCETitle->SetEditorMode(TRUE, CE_HOME);
- frameCETitle->ShowModal();
- delete frameCETitle;
- frameCETitle = NULL;
+
+ long longSelected = -1;
+ int intSelectedData = 0;
+
+ if (!GetSelectedItem(lboHomeTitles,
+ &longSelected,
+ &intSelectedData)){
+ return;
+ }
+
+ frmContactEditorTitles *frameCETitle = new frmContactEditorTitles ( this );
+ frameCETitle->SetupPointers(&ContactEditorData.HomeTitleList,
+ &ContactEditorData.HomeTitleListLanguage,
+ &ContactEditorData.HomeTitleListAltID,
+ &ContactEditorData.HomeTitleListPID,
+ &ContactEditorData.HomeTitleListType,
+ &ContactEditorData.HomeTitleListTokens,
+ &ContactEditorData.HomeTitleListPref,
+ lboHomeTitles,
+ intSelectedData);
+ frameCETitle->SetEditorMode(TRUE, CE_HOME);
+ frameCETitle->ShowModal();
+ delete frameCETitle;
+ frameCETitle = NULL;
+
}
void frmContactEditor::DeleteHomeTitle( wxCommandEvent& event )
{
- long longSelected = -1;
- int intSelectedData = 0;
+
+ long longSelected = -1;
+ int intSelectedData = 0;
- if (!GetSelectedItem(lboHomeTitles,
- &longSelected,
- &intSelectedData)){
- return;
- }
+ if (!GetSelectedItem(lboHomeTitles,
+ &longSelected,
+ &intSelectedData)){
+ return;
+ }
- lboHomeTitles->DeleteItem(longSelected);
+ lboHomeTitles->DeleteItem(longSelected);
- DeleteMapData(intSelectedData, &ContactEditorData.HomeTitleList,
- &ContactEditorData.HomeTitleListLanguage, &ContactEditorData.HomeTitleListAltID,
- &ContactEditorData.HomeTitleListPID, &ContactEditorData.HomeTitleListType,
- &ContactEditorData.HomeTitleListTokens, &ContactEditorData.HomeTitleListPref);
+ DeleteMapData(intSelectedData, &ContactEditorData.HomeTitleList,
+ &ContactEditorData.HomeTitleListLanguage, &ContactEditorData.HomeTitleListAltID,
+ &ContactEditorData.HomeTitleListPID, &ContactEditorData.HomeTitleListType,
+ &ContactEditorData.HomeTitleListTokens, &ContactEditorData.HomeTitleListPref);
}
void frmContactEditor::AddHomeRole( wxCommandEvent& event )
{
- int intResult = 0;
-
- frmContactEditorRoles *frameCERole = new frmContactEditorRoles ( this );
- frameCERole->SetEditorMode(FALSE, CE_HOME);
- intResult = GetLastInt(&ContactEditorData.HomeRoleList);
- frameCERole->SetupPointers(&ContactEditorData.HomeRoleList,
- &ContactEditorData.HomeRoleListLanguage,
- &ContactEditorData.HomeRoleListAltID,
- &ContactEditorData.HomeRoleListPID,
- &ContactEditorData.HomeRoleListType,
- &ContactEditorData.HomeRoleListTokens,
- &ContactEditorData.HomeRoleListPref,
- lboHomeRoles,
- (intValueSeek));
- frameCERole->ShowModal();
- delete frameCERole;
- frameCERole = NULL;
+
+ int intResult = 0;
+
+ frmContactEditorRoles *frameCERole = new frmContactEditorRoles ( this );
+ frameCERole->SetEditorMode(FALSE, CE_HOME);
+ intResult = GetLastInt(&ContactEditorData.HomeRoleList);
+ frameCERole->SetupPointers(&ContactEditorData.HomeRoleList,
+ &ContactEditorData.HomeRoleListLanguage,
+ &ContactEditorData.HomeRoleListAltID,
+ &ContactEditorData.HomeRoleListPID,
+ &ContactEditorData.HomeRoleListType,
+ &ContactEditorData.HomeRoleListTokens,
+ &ContactEditorData.HomeRoleListPref,
+ lboHomeRoles,
+ (intValueSeek));
+ frameCERole->ShowModal();
+ delete frameCERole;
+ frameCERole = NULL;
+
}
void frmContactEditor::ModifyHomeRole( wxCommandEvent& event )
{
- long longSelected = -1;
- int intSelectedData = 0;
-
- if (!GetSelectedItem(lboHomeRoles,
- &longSelected,
- &intSelectedData)){
- return;
- }
-
- frmContactEditorRoles *frameCERole = new frmContactEditorRoles ( this );
- frameCERole->SetupPointers(&ContactEditorData.HomeRoleList,
- &ContactEditorData.HomeRoleListLanguage,
- &ContactEditorData.HomeRoleListAltID,
- &ContactEditorData.HomeRoleListPID,
- &ContactEditorData.HomeRoleListType,
- &ContactEditorData.HomeRoleListTokens,
- &ContactEditorData.HomeRoleListPref,
- lboHomeRoles,
- intSelectedData);
- frameCERole->SetEditorMode(TRUE, CE_HOME);
- frameCERole->ShowModal();
- delete frameCERole;
- frameCERole = NULL;
+
+ long longSelected = -1;
+ int intSelectedData = 0;
+
+ if (!GetSelectedItem(lboHomeRoles,
+ &longSelected,
+ &intSelectedData)){
+ return;
+ }
+
+ frmContactEditorRoles *frameCERole = new frmContactEditorRoles ( this );
+ frameCERole->SetupPointers(&ContactEditorData.HomeRoleList,
+ &ContactEditorData.HomeRoleListLanguage,
+ &ContactEditorData.HomeRoleListAltID,
+ &ContactEditorData.HomeRoleListPID,
+ &ContactEditorData.HomeRoleListType,
+ &ContactEditorData.HomeRoleListTokens,
+ &ContactEditorData.HomeRoleListPref,
+ lboHomeRoles,
+ intSelectedData);
+ frameCERole->SetEditorMode(TRUE, CE_HOME);
+ frameCERole->ShowModal();
+ delete frameCERole;
+ frameCERole = NULL;
+
}
void frmContactEditor::DeleteHomeRole( wxCommandEvent& event )
{
- long longSelected = -1;
- int intSelectedData = 0;
+
+ long longSelected = -1;
+ int intSelectedData = 0;
- if (!GetSelectedItem(lboHomeRoles,
- &longSelected,
- &intSelectedData)){
- return;
- }
+ if (!GetSelectedItem(lboHomeRoles,
+ &longSelected,
+ &intSelectedData)){
+ return;
+ }
- lboHomeRoles->DeleteItem(longSelected);
+ lboHomeRoles->DeleteItem(longSelected);
- DeleteMapData(intSelectedData, &ContactEditorData.HomeRoleList,
- &ContactEditorData.HomeRoleListLanguage, &ContactEditorData.HomeRoleListAltID,
- &ContactEditorData.HomeRoleListPID, &ContactEditorData.HomeRoleListType,
- &ContactEditorData.HomeRoleListTokens, &ContactEditorData.HomeRoleListPref);
+ DeleteMapData(intSelectedData, &ContactEditorData.HomeRoleList,
+ &ContactEditorData.HomeRoleListLanguage, &ContactEditorData.HomeRoleListAltID,
+ &ContactEditorData.HomeRoleListPID, &ContactEditorData.HomeRoleListType,
+ &ContactEditorData.HomeRoleListTokens, &ContactEditorData.HomeRoleListPref);
}
void frmContactEditor::AddHomeOrganisation( wxCommandEvent& event )
{
- int intResult = 0;
-
- frmContactEditorOrganisations *frameCEOrg = new frmContactEditorOrganisations ( this );
- frameCEOrg->SetEditorMode(FALSE, CE_HOME);
- 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();
- delete frameCEOrg;
- frameCEOrg = NULL;
+
+ int intResult = 0;
+
+ frmContactEditorOrganisations *frameCEOrg = new frmContactEditorOrganisations ( this );
+ frameCEOrg->SetEditorMode(FALSE, CE_HOME);
+ 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();
+ delete frameCEOrg;
+ frameCEOrg = NULL;
+
}
void frmContactEditor::ModifyHomeOrganisation( wxCommandEvent& event )
{
- long longSelected = -1;
- int intSelectedData = 0;
-
- if (!GetSelectedItem(lboHomeOrganisations,
- &longSelected,
- &intSelectedData)){
- return;
- }
-
- frmContactEditorOrganisations *frameCEOrg = new frmContactEditorOrganisations ( this );
- 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);
- frameCEOrg->ShowModal();
- delete frameCEOrg;
- frameCEOrg = NULL;
+
+ long longSelected = -1;
+ int intSelectedData = 0;
+
+ if (!GetSelectedItem(lboHomeOrganisations,
+ &longSelected,
+ &intSelectedData)){
+ return;
+ }
+
+ frmContactEditorOrganisations *frameCEOrg = new frmContactEditorOrganisations ( this );
+ 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);
+ frameCEOrg->ShowModal();
+ delete frameCEOrg;
+ frameCEOrg = NULL;
+
}
void frmContactEditor::DeleteHomeOrganisation( wxCommandEvent& event )
{
- long longSelected = -1;
- int intSelectedData = 0;
+
+ long longSelected = -1;
+ int intSelectedData = 0;
- if (!GetSelectedItem(lboHomeOrganisations,
- &longSelected,
- &intSelectedData)){
- return;
- }
+ if (!GetSelectedItem(lboHomeOrganisations,
+ &longSelected,
+ &intSelectedData)){
+ return;
+ }
- lboHomeOrganisations->DeleteItem(longSelected);
-
- DeleteMapData(intSelectedData, &ContactEditorData.HomeOrganisationsList,
- &ContactEditorData.HomeOrganisationsListLanguage, &ContactEditorData.HomeOrganisationsListSortAs,
- &ContactEditorData.HomeOrganisationsListAltID, &ContactEditorData.HomeOrganisationsListPID,
- &ContactEditorData.HomeOrganisationsListType, &ContactEditorData.HomeOrganisationsListTokens,
- &ContactEditorData.HomeOrganisationsListPref);
+ lboHomeOrganisations->DeleteItem(longSelected);
+
+ DeleteMapData(intSelectedData, &ContactEditorData.HomeOrganisationsList,
+ &ContactEditorData.HomeOrganisationsListLanguage, &ContactEditorData.HomeOrganisationsListSortAs,
+ &ContactEditorData.HomeOrganisationsListAltID, &ContactEditorData.HomeOrganisationsListPID,
+ &ContactEditorData.HomeOrganisationsListType, &ContactEditorData.HomeOrganisationsListTokens,
+ &ContactEditorData.HomeOrganisationsListPref);
}
void frmContactEditor::AddHomeNote( wxCommandEvent& event )
{
- int intResult = 0;
-
- frmContactEditorNotes *frameCENote = new frmContactEditorNotes ( this );
- frameCENote->SetEditorMode(FALSE, CE_HOME);
- intResult = GetLastInt(&ContactEditorData.HomeNoteList);
- frameCENote->SetupPointers(&ContactEditorData.HomeNoteList,
- &ContactEditorData.HomeNoteListLanguage,
- &ContactEditorData.HomeNoteListAltID,
- &ContactEditorData.HomeNoteListPID,
- &ContactEditorData.HomeNoteListType,
- &ContactEditorData.HomeNoteListTokens,
- &ContactEditorData.HomeNoteListPref,
- lboHomeNotes,
- (intValueSeek));
- frameCENote->ShowModal();
- delete frameCENote;
- frameCENote = NULL;
+
+ int intResult = 0;
+
+ frmContactEditorNotes *frameCENote = new frmContactEditorNotes ( this );
+ frameCENote->SetEditorMode(FALSE, CE_HOME);
+ intResult = GetLastInt(&ContactEditorData.HomeNoteList);
+ frameCENote->SetupPointers(&ContactEditorData.HomeNoteList,
+ &ContactEditorData.HomeNoteListLanguage,
+ &ContactEditorData.HomeNoteListAltID,
+ &ContactEditorData.HomeNoteListPID,
+ &ContactEditorData.HomeNoteListType,
+ &ContactEditorData.HomeNoteListTokens,
+ &ContactEditorData.HomeNoteListPref,
+ lboHomeNotes,
+ (intValueSeek));
+ frameCENote->ShowModal();
+ delete frameCENote;
+ frameCENote = NULL;
+
}
void frmContactEditor::ModifyHomeNote( wxCommandEvent& event )
{
- long longSelected = -1;
- int intSelectedData = 0;
-
- if (!GetSelectedItem(lboHomeNotes,
- &longSelected,
- &intSelectedData)){
- return;
- }
-
- frmContactEditorNotes *frameCENote = new frmContactEditorNotes ( this );
- frameCENote->SetupPointers(&ContactEditorData.HomeNoteList,
- &ContactEditorData.HomeNoteListLanguage,
- &ContactEditorData.HomeNoteListAltID,
- &ContactEditorData.HomeNoteListPID,
- &ContactEditorData.HomeNoteListType,
- &ContactEditorData.HomeNoteListTokens,
- &ContactEditorData.HomeNoteListPref,
- lboHomeNotes,
- intSelectedData);
- frameCENote->SetEditorMode(TRUE, CE_HOME);
- frameCENote->ShowModal();
- delete frameCENote;
- frameCENote = NULL;
+
+ long longSelected = -1;
+ int intSelectedData = 0;
+
+ if (!GetSelectedItem(lboHomeNotes,
+ &longSelected,
+ &intSelectedData)){
+ return;
+ }
+
+ frmContactEditorNotes *frameCENote = new frmContactEditorNotes ( this );
+ frameCENote->SetupPointers(&ContactEditorData.HomeNoteList,
+ &ContactEditorData.HomeNoteListLanguage,
+ &ContactEditorData.HomeNoteListAltID,
+ &ContactEditorData.HomeNoteListPID,
+ &ContactEditorData.HomeNoteListType,
+ &ContactEditorData.HomeNoteListTokens,
+ &ContactEditorData.HomeNoteListPref,
+ lboHomeNotes,
+ intSelectedData);
+ frameCENote->SetEditorMode(TRUE, CE_HOME);
+ frameCENote->ShowModal();
+ delete frameCENote;
+ frameCENote = NULL;
+
}
void frmContactEditor::DeleteHomeNote( wxCommandEvent& event )
{
- long longSelected = -1;
- int intSelectedData = 0;
+
+ long longSelected = -1;
+ int intSelectedData = 0;
- if (!GetSelectedItem(lboHomeNotes,
- &longSelected,
- &intSelectedData)){
- return;
- }
+ if (!GetSelectedItem(lboHomeNotes,
+ &longSelected,
+ &intSelectedData)){
+ return;
+ }
- lboNotes->DeleteItem(longSelected);
+ lboNotes->DeleteItem(longSelected);
- DeleteMapData(intSelectedData, &ContactEditorData.HomeNoteList,
- &ContactEditorData.HomeNoteListLanguage, &ContactEditorData.HomeNoteListAltID,
- &ContactEditorData.HomeNoteListPID, &ContactEditorData.HomeNoteListType,
- &ContactEditorData.HomeNoteListTokens, &ContactEditorData.HomeNoteListPref);
+ DeleteMapData(intSelectedData, &ContactEditorData.HomeNoteList,
+ &ContactEditorData.HomeNoteListLanguage, &ContactEditorData.HomeNoteListAltID,
+ &ContactEditorData.HomeNoteListPID, &ContactEditorData.HomeNoteListType,
+ &ContactEditorData.HomeNoteListTokens, &ContactEditorData.HomeNoteListPref);
}