X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2Fcontacteditor%2FfrmContactEditor-General.cpp;h=2ee83a3efcb07c5af88aee546d8d316c8003d271;hb=9a84daaa816cc3f4f64880594512f4098c0e29d9;hp=75ececb7e68014e439287c26c2abc6375d0a8a78;hpb=c6694e56236cca9741afafb6c62ce5e11053cefc;p=xestiaab%2F.git diff --git a/source/contacteditor/frmContactEditor-General.cpp b/source/contacteditor/frmContactEditor-General.cpp index 75ececb..2ee83a3 100644 --- a/source/contacteditor/frmContactEditor-General.cpp +++ b/source/contacteditor/frmContactEditor-General.cpp @@ -36,11 +36,10 @@ void frmContactEditor::AddGeneralNickname( wxCommandEvent& event ) { - int intResult = 0; - + // Bring up the window for adding a nickname. + frmContactEditorNickname *frameCENickname = new frmContactEditorNickname ( this ); frameCENickname->SetEditorMode(FALSE, CE_GENERAL); - intResult = GetLastInt(&ContactEditorData.GeneralNicknamesList); frameCENickname->SetupPointers(&ContactEditorData.GeneralNicknamesList, &ContactEditorData.GeneralNicknamesListAltID, &ContactEditorData.GeneralNicknamesListPID, @@ -59,6 +58,8 @@ void frmContactEditor::AddGeneralNickname( wxCommandEvent& event ) void frmContactEditor::ModifyGeneralNickname( wxCommandEvent& event ) { + // Bring up the window for modifying a nickname. + long longSelected = -1; int intSelectedData = 0; @@ -88,6 +89,8 @@ void frmContactEditor::ModifyGeneralNickname( wxCommandEvent& event ) void frmContactEditor::DeleteGeneralNickname( wxCommandEvent& event ) { + // Bring up the window for deleting a nickname. + long longSelected = -1; int intSelectedData = 0; @@ -113,11 +116,10 @@ void frmContactEditor::DeleteGeneralNickname( wxCommandEvent& event ) void frmContactEditor::AddGeneralAddress( wxCommandEvent& event ) { - int intResult = 0; + // Bring up the window for adding an address. frmContactEditorAddress *frameCEAddress = new frmContactEditorAddress ( this ); frameCEAddress->SetEditorMode(FALSE, CE_GENERAL); - intResult = GetLastInt(&ContactEditorData.GeneralAddressList); frameCEAddress->SetupPointers(&ContactEditorData.GeneralAddressList, &ContactEditorData.GeneralAddressListTown, &ContactEditorData.GeneralAddressListCounty, @@ -143,6 +145,8 @@ void frmContactEditor::AddGeneralAddress( wxCommandEvent& event ) void frmContactEditor::ModifyGeneralAddress( wxCommandEvent& event ) { + + // Bring up the window for editing an address. long longSelected = -1; int intSelectedData = 0; @@ -189,6 +193,8 @@ void frmContactEditor::ModifyGeneralAddress( wxCommandEvent& event ) void frmContactEditor::DeleteGeneralAddress( wxCommandEvent& event ) { + // Bring up the window for deleting a nickname. + long longSelected = -1; int intSelectedData = 0; @@ -217,11 +223,10 @@ void frmContactEditor::DeleteGeneralAddress( wxCommandEvent& event ) void frmContactEditor::AddGeneralEmail( wxCommandEvent& event ) { - int intResult = 0; - + // Bring up the window for adding an email. + frmContactEditorEmail *frameCEEmail = new frmContactEditorEmail ( this ); frameCEEmail->SetEditorMode(FALSE, CE_GENERAL); - intResult = GetLastInt(&ContactEditorData.GeneralAddressList); frameCEEmail->SetupPointers(&ContactEditorData.GeneralEmailList, &ContactEditorData.GeneralEmailListAltID, &ContactEditorData.GeneralEmailListPID, @@ -239,6 +244,8 @@ void frmContactEditor::AddGeneralEmail( wxCommandEvent& event ) void frmContactEditor::ModifyGeneralEmail( wxCommandEvent& event ) { + // Bring up the window for modifying an email. + long longSelected = -1; int intSelectedData = 0; @@ -269,6 +276,8 @@ void frmContactEditor::ModifyGeneralEmail( wxCommandEvent& event ) void frmContactEditor::DeleteGeneralEmail( wxCommandEvent& event ) { + // Bring up the window for deleting an email. + long longSelected = -1; int intSelectedData = 0; @@ -292,11 +301,10 @@ void frmContactEditor::DeleteGeneralEmail( wxCommandEvent& event ) void frmContactEditor::AddGeneralIM( wxCommandEvent& event ) { - int intResult = 0; + // Bring up the window for adding a IM address. frmContactEditorIM *frameCEIM = new frmContactEditorIM ( this ); frameCEIM->SetEditorMode(FALSE, CE_GENERAL); - intResult = GetLastInt(&ContactEditorData.GeneralIMList); frameCEIM->SetupPointers(&ContactEditorData.GeneralIMList, &ContactEditorData.GeneralIMListAltID, &ContactEditorData.GeneralIMListPID, @@ -316,6 +324,8 @@ void frmContactEditor::AddGeneralIM( wxCommandEvent& event ) void frmContactEditor::ModifyGeneralIM( wxCommandEvent& event ) { + // Bring up the window for editing a IM address. + long longSelected = -1; int intSelectedData = 0; @@ -348,6 +358,8 @@ void frmContactEditor::ModifyGeneralIM( wxCommandEvent& event ) void frmContactEditor::DeleteGeneralIM( wxCommandEvent& event ) { + // Bring up the window for deleting an IM address. + long longSelected = -1; int intSelectedData = 0; @@ -371,11 +383,10 @@ void frmContactEditor::DeleteGeneralIM( wxCommandEvent& event ) void frmContactEditor::AddGeneralTelephone( wxCommandEvent& event ) { - int intResult = 0; + // Bring up the window for adding a telephone. frmContactEditorTelephone *frameCETel = new frmContactEditorTelephone ( this ); frameCETel->SetEditorMode(FALSE, CE_GENERAL); - intResult = GetLastInt(&ContactEditorData.GeneralTelephoneList); frameCETel->SetupPointers(&ContactEditorData.GeneralTelephoneList, &ContactEditorData.GeneralTelephoneListAltID, &ContactEditorData.GeneralTelephoneListPID, @@ -394,6 +405,8 @@ void frmContactEditor::AddGeneralTelephone( wxCommandEvent& event ) void frmContactEditor::ModifyGeneralTelephone( wxCommandEvent& event ) { + // Bring up the window for editing a telephone. + long longSelected = -1; int intSelectedData = 0; @@ -425,6 +438,8 @@ void frmContactEditor::ModifyGeneralTelephone( wxCommandEvent& event ) void frmContactEditor::DeleteGeneralTelephone( wxCommandEvent& event ) { + // Bring up the window for deleting a telephone. + long longSelected = -1; int intSelectedData = 0; @@ -448,11 +463,10 @@ void frmContactEditor::DeleteGeneralTelephone( wxCommandEvent& event ) void frmContactEditor::AddGeneralLanguages( wxCommandEvent& event ) { - int intResult = 0; + // Bring up the window for adding a language. frmContactEditorLanguages *frameCELang = new frmContactEditorLanguages ( this ); frameCELang->SetEditorMode(FALSE, CE_GENERAL); - intResult = GetLastInt(&ContactEditorData.GeneralLanguageList); frameCELang->SetupPointers(&ContactEditorData.GeneralLanguageList, &ContactEditorData.GeneralLanguageListAltID, &ContactEditorData.GeneralLanguageListPID, @@ -470,6 +484,8 @@ void frmContactEditor::AddGeneralLanguages( wxCommandEvent& event ) void frmContactEditor::ModifyGeneralLanguages( wxCommandEvent& event ) { + // Bring up the window for modifying a language. + long longSelected = -1; int intSelectedData = 0; @@ -500,6 +516,8 @@ void frmContactEditor::ModifyGeneralLanguages( wxCommandEvent& event ) void frmContactEditor::DeleteGeneralLanguage( wxCommandEvent& event ) { + // Bring up the window for deleting a language. + long longSelected = -1; int intSelectedData = 0; @@ -522,11 +540,10 @@ void frmContactEditor::DeleteGeneralLanguage( wxCommandEvent& event ) void frmContactEditor::AddGeneralTimezone( wxCommandEvent& event ) { - int intResult = 0; + // Bring up the window for adding a timezone. frmContactEditorTimezones *frameCETZ = new frmContactEditorTimezones ( this ); frameCETZ->SetEditorMode(FALSE, CE_GENERAL); - intResult = GetLastInt(&ContactEditorData.GeneralTZList); frameCETZ->SetupPointers(&ContactEditorData.GeneralTZList, &ContactEditorData.GeneralTZListAltID, &ContactEditorData.GeneralTZListPID, @@ -545,6 +562,8 @@ void frmContactEditor::AddGeneralTimezone( wxCommandEvent& event ) void frmContactEditor::ModifyGeneralTimezone( wxCommandEvent& event ) { + // Bring up a window for editing a timezone. + long longSelected = -1; int intSelectedData = 0; @@ -575,6 +594,8 @@ void frmContactEditor::ModifyGeneralTimezone( wxCommandEvent& event ) void frmContactEditor::DeleteGeneralTimezone( wxCommandEvent& event ) { + // Bring up the window for deleting a timezone. + long longSelected = -1; int intSelectedData = 0; @@ -598,11 +619,10 @@ void frmContactEditor::DeleteGeneralTimezone( wxCommandEvent& event ) void frmContactEditor::AddGeneralGeoposition( wxCommandEvent& event ) { - int intResult = 0; + // Bring up the window for adding a geoposition location. frmContactEditorGeoposition *frameCEGeo = new frmContactEditorGeoposition ( this ); frameCEGeo->SetEditorMode(FALSE, CE_GENERAL); - intResult = GetLastInt(&ContactEditorData.GeneralGeographyList); frameCEGeo->SetupPointers(&ContactEditorData.GeneralGeographyList, &ContactEditorData.GeneralGeographyListAltID, &ContactEditorData.GeneralGeographyListPID, @@ -622,6 +642,8 @@ void frmContactEditor::AddGeneralGeoposition( wxCommandEvent& event ) void frmContactEditor::ModifyGeneralGeoposition( wxCommandEvent& event ) { + // Bring up the window for editing a geoposition location. + long longSelected = -1; int intSelectedData = 0; @@ -655,6 +677,8 @@ void frmContactEditor::ModifyGeneralGeoposition( wxCommandEvent& event ) void frmContactEditor::DeleteGeneralGeoposition( wxCommandEvent& event ) { + // Bring up the window for deleting a geoposition location. + long longSelected = -1; int intSelectedData = 0; @@ -679,11 +703,10 @@ void frmContactEditor::DeleteGeneralGeoposition( wxCommandEvent& event ) void frmContactEditor::AddGeneralRelated( wxCommandEvent& event ) { - int intResult = 0; + // Bring up the window for adding a relation. frmContactEditorRelated *frameCERel = new frmContactEditorRelated ( this ); frameCERel->SetEditorMode(FALSE, CE_GENERAL); - intResult = GetLastInt(&ContactEditorData.GeneralRelatedList); frameCERel->SetupPointers(&ContactEditorData.GeneralRelatedList, &ContactEditorData.GeneralRelatedListRelType, &ContactEditorData.GeneralRelatedListAltID, @@ -702,6 +725,8 @@ void frmContactEditor::AddGeneralRelated( wxCommandEvent& event ) void frmContactEditor::ModifyGeneralRelated( wxCommandEvent& event ) { + // Bring up the window for editing a relation. + long longSelected = -1; int intSelectedData = 0; @@ -733,6 +758,8 @@ void frmContactEditor::ModifyGeneralRelated( wxCommandEvent& event ) void frmContactEditor::DeleteGeneralRelated( wxCommandEvent& event ) { + // Bring up a window for deleting a relation. + long longSelected = -1; int intSelectedData = 0; @@ -756,11 +783,10 @@ void frmContactEditor::DeleteGeneralRelated( wxCommandEvent& event ) void frmContactEditor::AddGeneralWebsite( wxCommandEvent& event ) { - int intResult = 0; + // Bring up a window for adding a website. frmContactEditorWebsites *frameCEWeb = new frmContactEditorWebsites ( this ); frameCEWeb->SetEditorMode(FALSE, CE_GENERAL); - intResult = GetLastInt(&ContactEditorData.GeneralWebsiteList); frameCEWeb->SetupPointers(&ContactEditorData.GeneralWebsiteList, &ContactEditorData.GeneralWebsiteListAltID, &ContactEditorData.GeneralWebsiteListPID, @@ -779,6 +805,8 @@ void frmContactEditor::AddGeneralWebsite( wxCommandEvent& event ) void frmContactEditor::ModifyGeneralWebsite( wxCommandEvent& event ) { + // Bring up a window for editing a website. + long longSelected = -1; int intSelectedData = 0; @@ -810,6 +838,8 @@ void frmContactEditor::ModifyGeneralWebsite( wxCommandEvent& event ) void frmContactEditor::DeleteGeneralWebsite( wxCommandEvent& event ) { + // Bring up a window for deleting a website. + long longSelected = -1; int intSelectedData = 0; @@ -833,11 +863,10 @@ void frmContactEditor::DeleteGeneralWebsite( wxCommandEvent& event ) void frmContactEditor::AddGeneralTitle( wxCommandEvent& event ) { - int intResult = 0; + // Bring up the window for adding a title. frmContactEditorTitles *frameCETitle = new frmContactEditorTitles ( this ); frameCETitle->SetEditorMode(FALSE, CE_GENERAL); - intResult = GetLastInt(&ContactEditorData.GeneralTitleList); frameCETitle->SetupPointers(&ContactEditorData.GeneralTitleList, &ContactEditorData.GeneralTitleListLanguage, &ContactEditorData.GeneralTitleListAltID, @@ -856,6 +885,8 @@ void frmContactEditor::AddGeneralTitle( wxCommandEvent& event ) void frmContactEditor::ModifyGeneralTitle( wxCommandEvent& event ) { + // Bring up the window for editing a title. + long longSelected = -1; int intSelectedData = 0; @@ -887,6 +918,8 @@ void frmContactEditor::ModifyGeneralTitle( wxCommandEvent& event ) void frmContactEditor::DeleteGeneralTitle( wxCommandEvent& event ) { + // Bring up the window for deleting a title. + long longSelected = -1; int intSelectedData = 0; @@ -910,11 +943,10 @@ void frmContactEditor::DeleteGeneralTitle( wxCommandEvent& event ) void frmContactEditor::AddGeneralRole( wxCommandEvent& event ) { - int intResult = 0; + // Bring up the window for adding a role. frmContactEditorRoles *frameCERole = new frmContactEditorRoles ( this ); frameCERole->SetEditorMode(FALSE, CE_GENERAL); - intResult = GetLastInt(&ContactEditorData.GeneralRoleList); frameCERole->SetupPointers(&ContactEditorData.GeneralRoleList, &ContactEditorData.GeneralRoleListLanguage, &ContactEditorData.GeneralRoleListAltID, @@ -933,6 +965,8 @@ void frmContactEditor::AddGeneralRole( wxCommandEvent& event ) void frmContactEditor::ModifyGeneralRole( wxCommandEvent& event ) { + // Bring up the window for editing a role. + long longSelected = -1; int intSelectedData = 0; @@ -964,6 +998,8 @@ void frmContactEditor::ModifyGeneralRole( wxCommandEvent& event ) void frmContactEditor::DeleteGeneralRole( wxCommandEvent& event ) { + // Bring up the window for deleting a role. + long longSelected = -1; int intSelectedData = 0; @@ -987,11 +1023,10 @@ void frmContactEditor::DeleteGeneralRole( wxCommandEvent& event ) void frmContactEditor::AddGeneralOrganisation( wxCommandEvent& event ) { - int intResult = 0; + // Bring up the window for adding an organisation. frmContactEditorOrganisations *frameCEOrg = new frmContactEditorOrganisations ( this ); frameCEOrg->SetEditorMode(FALSE, CE_GENERAL); - intResult = GetLastInt(&ContactEditorData.GeneralOrganisationsList); frameCEOrg->SetupPointers(&ContactEditorData.GeneralOrganisationsList, &ContactEditorData.GeneralOrganisationsListLanguage, &ContactEditorData.GeneralOrganisationsListSortAs, @@ -1011,6 +1046,8 @@ void frmContactEditor::AddGeneralOrganisation( wxCommandEvent& event ) void frmContactEditor::ModifyGeneralOrganisation( wxCommandEvent& event ) { + // Bring up the window for editing an organisation. + long longSelected = -1; int intSelectedData = 0; @@ -1043,6 +1080,8 @@ void frmContactEditor::ModifyGeneralOrganisation( wxCommandEvent& event ) void frmContactEditor::DeleteGeneralOrganisation( wxCommandEvent& event ) { + // Bring up the window for deleting an organisation. + long longSelected = -1; int intSelectedData = 0; @@ -1067,11 +1106,10 @@ void frmContactEditor::DeleteGeneralOrganisation( wxCommandEvent& event ) void frmContactEditor::AddGeneralNote( wxCommandEvent& event ) { - int intResult = 0; + // Bring up the window for adding a note. frmContactEditorNotes *frameCENote = new frmContactEditorNotes ( this ); frameCENote->SetEditorMode(FALSE, CE_GENERAL); - intResult = GetLastInt(&ContactEditorData.GeneralNoteList); frameCENote->SetupPointers(&ContactEditorData.GeneralNoteList, &ContactEditorData.GeneralNoteListLanguage, &ContactEditorData.GeneralNoteListAltID, @@ -1090,6 +1128,8 @@ void frmContactEditor::AddGeneralNote( wxCommandEvent& event ) void frmContactEditor::ModifyGeneralNote( wxCommandEvent& event ) { + // Bring up the window for editing a note. + long longSelected = -1; int intSelectedData = 0; @@ -1121,6 +1161,8 @@ void frmContactEditor::ModifyGeneralNote( wxCommandEvent& event ) void frmContactEditor::DeleteGeneralNote( wxCommandEvent& event ) { + // Bring up a window for deleting a note. + long longSelected = -1; int intSelectedData = 0;