X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2Fcontacteditor%2FfrmContactEditor-Business.cpp;h=7294d942582bf309e2ec90ea58399810f4ac5a7e;hb=9a84daaa816cc3f4f64880594512f4098c0e29d9;hp=5a19a7c95d0ab045e0e0cc0ca917c3a1d59221ea;hpb=03e449a96a8119033ed11638e1c710547f6cf45a;p=xestiaab%2F.git diff --git a/source/contacteditor/frmContactEditor-Business.cpp b/source/contacteditor/frmContactEditor-Business.cpp index 5a19a7c..7294d94 100644 --- a/source/contacteditor/frmContactEditor-Business.cpp +++ b/source/contacteditor/frmContactEditor-Business.cpp @@ -36,11 +36,10 @@ void frmContactEditor::AddBusinessNickname( wxCommandEvent& event ) { - int intResult = 0; - + // Bring up the window for adding a nickname. + frmContactEditorNickname *frameCENickname = new frmContactEditorNickname ( this ); frameCENickname->SetEditorMode(FALSE, CE_WORK); - intResult = GetLastInt(&ContactEditorData.BusinessNicknamesList); frameCENickname->SetupPointers(&ContactEditorData.BusinessNicknamesList, &ContactEditorData.BusinessNicknamesListAltID, &ContactEditorData.BusinessNicknamesListPID, @@ -59,6 +58,8 @@ void frmContactEditor::AddBusinessNickname( wxCommandEvent& event ) void frmContactEditor::ModifyBusinessNickname( wxCommandEvent& event ) { + // Bring up the window for modifying a nickname. + long longSelected = -1; int intSelectedData = 0; @@ -90,6 +91,8 @@ void frmContactEditor::ModifyBusinessNickname( wxCommandEvent& event ) void frmContactEditor::DeleteBusinessNickname( wxCommandEvent& event ) { + // Bring up the window to delete the nickname. + long longSelected = -1; int intSelectedData = 0; @@ -117,11 +120,10 @@ void frmContactEditor::DeleteBusinessNickname( wxCommandEvent& event ) void frmContactEditor::AddBusinessAddress( wxCommandEvent& event ) { - int intResult = 0; + // Bring up the window for adding an address. frmContactEditorAddress *frameCEAddress = new frmContactEditorAddress ( this ); frameCEAddress->SetEditorMode(FALSE, CE_WORK); - intResult = GetLastInt(&ContactEditorData.BusinessAddressList); frameCEAddress->SetupPointers(&ContactEditorData.BusinessAddressList, &ContactEditorData.BusinessAddressListTown, &ContactEditorData.BusinessAddressListCounty, @@ -148,6 +150,8 @@ void frmContactEditor::AddBusinessAddress( wxCommandEvent& event ) void frmContactEditor::ModifyBusinessAddress( wxCommandEvent& event ) { + // Bring up a window for editing an address. + long longSelected = -1; int intSelectedData = 0; @@ -187,6 +191,8 @@ void frmContactEditor::ModifyBusinessAddress( wxCommandEvent& event ) void frmContactEditor::DeleteBusinessAddress( wxCommandEvent& event ) { + // Bring up the window for deleting the address. + long longSelected = -1; int intSelectedData = 0; @@ -214,11 +220,10 @@ void frmContactEditor::DeleteBusinessAddress( wxCommandEvent& event ) void frmContactEditor::AddBusinessEmail( wxCommandEvent& event ) { - int intResult = 0; + // Bring up the window for adding an email address. frmContactEditorEmail *frameCEEmail = new frmContactEditorEmail ( this ); frameCEEmail->SetEditorMode(FALSE, CE_WORK); - intResult = GetLastInt(&ContactEditorData.BusinessAddressList); frameCEEmail->SetupPointers(&ContactEditorData.BusinessEmailList, &ContactEditorData.BusinessEmailListAltID, &ContactEditorData.BusinessEmailListPID, @@ -236,6 +241,8 @@ void frmContactEditor::AddBusinessEmail( wxCommandEvent& event ) void frmContactEditor::ModifyBusinessEmail( wxCommandEvent& event ) { + // Bring up the window for modifying the email address. + long longSelected = -1; int intSelectedData = 0; @@ -266,6 +273,8 @@ void frmContactEditor::ModifyBusinessEmail( wxCommandEvent& event ) void frmContactEditor::DeleteBusinessEmail( wxCommandEvent& event ) { + // Bring up the window to delete the email address. + long longSelected = -1; int intSelectedData = 0; @@ -289,11 +298,10 @@ void frmContactEditor::DeleteBusinessEmail( wxCommandEvent& event ) void frmContactEditor::AddBusinessIM( wxCommandEvent& event ) { - int intResult = 0; + // Bring up the window for adding an IM address. frmContactEditorIM *frameCEIM = new frmContactEditorIM ( this ); frameCEIM->SetEditorMode(FALSE, CE_WORK); - intResult = GetLastInt(&ContactEditorData.BusinessIMList); frameCEIM->SetupPointers(&ContactEditorData.BusinessIMList, &ContactEditorData.BusinessIMListAltID, &ContactEditorData.BusinessIMListPID, @@ -313,6 +321,8 @@ void frmContactEditor::AddBusinessIM( wxCommandEvent& event ) void frmContactEditor::ModifyBusinessIM( wxCommandEvent& event ) { + // Bring up the window for editing an IM address. + long longSelected = -1; int intSelectedData = 0; @@ -345,6 +355,8 @@ void frmContactEditor::ModifyBusinessIM( wxCommandEvent& event ) void frmContactEditor::DeleteBusinessIM( wxCommandEvent& event ) { + // Bring up the window for deleting an IM address. + long longSelected = -1; int intSelectedData = 0; @@ -369,11 +381,10 @@ void frmContactEditor::DeleteBusinessIM( wxCommandEvent& event ) void frmContactEditor::AddBusinessTelephone( wxCommandEvent& event ) { - int intResult = 0; + // Bring up the window for adding a telephone number. frmContactEditorTelephone *frameCETel = new frmContactEditorTelephone ( this ); frameCETel->SetEditorMode(FALSE, CE_WORK); - intResult = GetLastInt(&ContactEditorData.BusinessTelephoneList); frameCETel->SetupPointers(&ContactEditorData.BusinessTelephoneList, &ContactEditorData.BusinessTelephoneListAltID, &ContactEditorData.BusinessTelephoneListPID, @@ -392,6 +403,8 @@ void frmContactEditor::AddBusinessTelephone( wxCommandEvent& event ) void frmContactEditor::ModifyBusinessTelephone( wxCommandEvent& event ) { + // Bring up the address for editing a telephone number. + long longSelected = -1; int intSelectedData = 0; @@ -423,6 +436,8 @@ void frmContactEditor::ModifyBusinessTelephone( wxCommandEvent& event ) void frmContactEditor::DeleteBusinessTelephone( wxCommandEvent& event ) { + // Bring up the window for deleting a telephone number. + long longSelected = -1; int intSelectedData = 0; @@ -446,11 +461,10 @@ void frmContactEditor::DeleteBusinessTelephone( wxCommandEvent& event ) void frmContactEditor::AddBusinessLanguage( wxCommandEvent& event ) { - int intResult = 0; + // Bring up the window for adding a language. frmContactEditorLanguages *frameCELang = new frmContactEditorLanguages ( this ); frameCELang->SetEditorMode(FALSE, CE_WORK); - intResult = GetLastInt(&ContactEditorData.BusinessLanguageList); frameCELang->SetupPointers(&ContactEditorData.BusinessLanguageList, &ContactEditorData.BusinessLanguageListAltID, &ContactEditorData.BusinessLanguageListPID, @@ -468,6 +482,8 @@ void frmContactEditor::AddBusinessLanguage( wxCommandEvent& event ) void frmContactEditor::ModifyBusinessLanguage( wxCommandEvent& event ) { + // Bring up the window for editing a language. + long longSelected = -1; int intSelectedData = 0; @@ -498,6 +514,8 @@ void frmContactEditor::ModifyBusinessLanguage( wxCommandEvent& event ) void frmContactEditor::DeleteBusinessLanguage( wxCommandEvent& event ) { + // Bring up the window for deleting a language. + long longSelected = -1; int intSelectedData = 0; @@ -521,11 +539,10 @@ void frmContactEditor::DeleteBusinessLanguage( wxCommandEvent& event ) void frmContactEditor::AddBusinessTimezone( wxCommandEvent& event ) { - int intResult = 0; + // Bring up the window for adding a timezone. frmContactEditorTimezones *frameCETZ = new frmContactEditorTimezones ( this ); frameCETZ->SetEditorMode(FALSE, CE_WORK); - intResult = GetLastInt(&ContactEditorData.BusinessTZList); frameCETZ->SetupPointers(&ContactEditorData.BusinessTZList, &ContactEditorData.BusinessTZListAltID, &ContactEditorData.BusinessTZListPID, @@ -544,6 +561,8 @@ void frmContactEditor::AddBusinessTimezone( wxCommandEvent& event ) void frmContactEditor::ModifyBusinessTimezone( wxCommandEvent& event ) { + // Bring up the window for modifying a timezone. + long longSelected = -1; int intSelectedData = 0; @@ -575,6 +594,8 @@ void frmContactEditor::ModifyBusinessTimezone( wxCommandEvent& event ) void frmContactEditor::DeleteBusinessTimezone( wxCommandEvent& event ) { + // Bring up the window for deleting a timezone. + long longSelected = -1; int intSelectedData = 0; @@ -598,11 +619,10 @@ void frmContactEditor::DeleteBusinessTimezone( wxCommandEvent& event ) void frmContactEditor::AddBusinessGeoposition( wxCommandEvent& event ) { - int intResult = 0; + // Bring up the window for adding a geoposition location. frmContactEditorGeoposition *frameCEGeo = new frmContactEditorGeoposition ( this ); frameCEGeo->SetEditorMode(FALSE, CE_WORK); - intResult = GetLastInt(&ContactEditorData.BusinessGeographyList); frameCEGeo->SetupPointers(&ContactEditorData.BusinessGeographyList, &ContactEditorData.BusinessGeographyListAltID, &ContactEditorData.BusinessGeographyListPID, @@ -622,6 +642,8 @@ void frmContactEditor::AddBusinessGeoposition( wxCommandEvent& event ) void frmContactEditor::ModifyBusinessGeoposition( wxCommandEvent& event ) { + // Bring up the window for editing a geoposition location. + long longSelected = -1; int intSelectedData = 0; @@ -654,6 +676,8 @@ void frmContactEditor::ModifyBusinessGeoposition( wxCommandEvent& event ) void frmContactEditor::DeleteBusinessGeoposition( wxCommandEvent& event ) { + // Bring up the window for deleting a geoposition location. + long longSelected = -1; int intSelectedData = 0; @@ -678,11 +702,10 @@ void frmContactEditor::DeleteBusinessGeoposition( wxCommandEvent& event ) void frmContactEditor::AddBusinessWebsite( wxCommandEvent& event ) { - int intResult = 0; + // Bring up the window for adding a website. frmContactEditorWebsites *frameCEWeb = new frmContactEditorWebsites ( this ); frameCEWeb->SetEditorMode(FALSE, CE_WORK); - intResult = GetLastInt(&ContactEditorData.BusinessWebsiteList); frameCEWeb->SetupPointers(&ContactEditorData.BusinessWebsiteList, &ContactEditorData.BusinessWebsiteListAltID, &ContactEditorData.BusinessWebsiteListPID, @@ -701,6 +724,8 @@ void frmContactEditor::AddBusinessWebsite( wxCommandEvent& event ) void frmContactEditor::ModifyBusinessWebsite( wxCommandEvent& event ) { + // Bring up a window for editing a website. + long longSelected = -1; int intSelectedData = 0; @@ -732,6 +757,8 @@ void frmContactEditor::ModifyBusinessWebsite( wxCommandEvent& event ) void frmContactEditor::DeleteBusinessWebsite( wxCommandEvent& event ) { + // Bring up the window for deleting a website. + long longSelected = -1; int intSelectedData = 0; @@ -755,11 +782,10 @@ void frmContactEditor::DeleteBusinessWebsite( wxCommandEvent& event ) void frmContactEditor::AddBusinessTitle( wxCommandEvent& event ) { - int intResult = 0; + // Bring up the window for adding a title. frmContactEditorTitles *frameCETitle = new frmContactEditorTitles ( this ); frameCETitle->SetEditorMode(FALSE, CE_WORK); - intResult = GetLastInt(&ContactEditorData.BusinessTitleList); frameCETitle->SetupPointers(&ContactEditorData.BusinessTitleList, &ContactEditorData.BusinessTitleListLanguage, &ContactEditorData.BusinessTitleListAltID, @@ -778,6 +804,8 @@ void frmContactEditor::AddBusinessTitle( wxCommandEvent& event ) void frmContactEditor::ModifyBusinessTitle( wxCommandEvent& event ) { + // Bring up the window for editing a title. + long longSelected = -1; int intSelectedData = 0; @@ -809,6 +837,8 @@ void frmContactEditor::ModifyBusinessTitle( wxCommandEvent& event ) void frmContactEditor::DeleteBusinessTitle( wxCommandEvent& event ) { + // Bring up the window to delete the title. + long longSelected = -1; int intSelectedData = 0; @@ -832,11 +862,10 @@ void frmContactEditor::DeleteBusinessTitle( wxCommandEvent& event ) void frmContactEditor::AddBusinessRole( wxCommandEvent& event ) { - int intResult = 0; + // Bring up the window to add a role. frmContactEditorRoles *frameCERole = new frmContactEditorRoles ( this ); frameCERole->SetEditorMode(FALSE, CE_WORK); - intResult = GetLastInt(&ContactEditorData.BusinessRoleList); frameCERole->SetupPointers(&ContactEditorData.BusinessRoleList, &ContactEditorData.BusinessRoleListLanguage, &ContactEditorData.BusinessRoleListAltID, @@ -855,6 +884,8 @@ void frmContactEditor::AddBusinessRole( wxCommandEvent& event ) void frmContactEditor::ModifyBusinessRole( wxCommandEvent& event ) { + // Bring up the window for editing a role. + long longSelected = -1; int intSelectedData = 0; @@ -886,6 +917,8 @@ void frmContactEditor::ModifyBusinessRole( wxCommandEvent& event ) void frmContactEditor::DeleteBusinessRole( wxCommandEvent& event ) { + // Bring up the window to delete a role. + long longSelected = -1; int intSelectedData = 0; @@ -909,11 +942,10 @@ void frmContactEditor::DeleteBusinessRole( wxCommandEvent& event ) void frmContactEditor::AddBusinessOrganisation( wxCommandEvent& event ) { - int intResult = 0; - + // Bring up the window to add an organisation. + frmContactEditorOrganisations *frameCEOrg = new frmContactEditorOrganisations ( this ); frameCEOrg->SetEditorMode(FALSE, CE_WORK); - intResult = GetLastInt(&ContactEditorData.BusinessOrganisationsList); frameCEOrg->SetupPointers(&ContactEditorData.BusinessOrganisationsList, &ContactEditorData.BusinessOrganisationsListLanguage, &ContactEditorData.BusinessOrganisationsListSortAs, @@ -933,6 +965,8 @@ void frmContactEditor::AddBusinessOrganisation( wxCommandEvent& event ) void frmContactEditor::ModifyBusinessOrganisation( wxCommandEvent& event ) { + // Bring up the window to edit an organisation. + long longSelected = -1; int intSelectedData = 0; @@ -965,6 +999,8 @@ void frmContactEditor::ModifyBusinessOrganisation( wxCommandEvent& event ) void frmContactEditor::DeleteBusinessOrganisation( wxCommandEvent& event ) { + // Bring up the window to delete a organisation. + long longSelected = -1; int intSelectedData = 0; @@ -989,11 +1025,10 @@ void frmContactEditor::DeleteBusinessOrganisation( wxCommandEvent& event ) void frmContactEditor::AddBusinessNote( wxCommandEvent& event ) { - int intResult = 0; + // Bring up the window to add a note. frmContactEditorNotes *frameCENote = new frmContactEditorNotes ( this ); frameCENote->SetEditorMode(FALSE, CE_WORK); - intResult = GetLastInt(&ContactEditorData.BusinessNoteList); frameCENote->SetupPointers(&ContactEditorData.BusinessNoteList, &ContactEditorData.BusinessNoteListLanguage, &ContactEditorData.BusinessNoteListAltID, @@ -1012,6 +1047,8 @@ void frmContactEditor::AddBusinessNote( wxCommandEvent& event ) void frmContactEditor::ModifyBusinessNote( wxCommandEvent& event ) { + // Bring up the window to edit a note. + long longSelected = -1; int intSelectedData = 0; @@ -1043,6 +1080,8 @@ void frmContactEditor::ModifyBusinessNote( wxCommandEvent& event ) void frmContactEditor::DeleteBusinessNote( wxCommandEvent& event ) { + // Bring up the window to delete a note. + long longSelected = -1; int intSelectedData = 0;