From f1af82fb637114dfc67e72356c0322928231bebf Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Mon, 14 Mar 2016 20:31:39 +0000 Subject: [PATCH] Added comments to describe functions in contacteditor/frmContactEditor-Business.cpp --- .../frmContactEditor-Business.cpp | 78 +++++++++++++++++++ 1 file changed, 78 insertions(+) diff --git a/source/contacteditor/frmContactEditor-Business.cpp b/source/contacteditor/frmContactEditor-Business.cpp index 5a19a7c..a5e39c7 100644 --- a/source/contacteditor/frmContactEditor-Business.cpp +++ b/source/contacteditor/frmContactEditor-Business.cpp @@ -36,6 +36,8 @@ void frmContactEditor::AddBusinessNickname( wxCommandEvent& event ) { + // Bring up the window for adding a nickname. + int intResult = 0; frmContactEditorNickname *frameCENickname = new frmContactEditorNickname ( this ); @@ -59,6 +61,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 +94,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,6 +123,8 @@ void frmContactEditor::DeleteBusinessNickname( wxCommandEvent& event ) void frmContactEditor::AddBusinessAddress( wxCommandEvent& event ) { + // Bring up the window for adding an address. + int intResult = 0; frmContactEditorAddress *frameCEAddress = new frmContactEditorAddress ( this ); @@ -148,6 +156,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 +197,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,6 +226,8 @@ void frmContactEditor::DeleteBusinessAddress( wxCommandEvent& event ) void frmContactEditor::AddBusinessEmail( wxCommandEvent& event ) { + // Bring up the window for adding an email address. + int intResult = 0; frmContactEditorEmail *frameCEEmail = new frmContactEditorEmail ( this ); @@ -236,6 +250,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 +282,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,6 +307,8 @@ void frmContactEditor::DeleteBusinessEmail( wxCommandEvent& event ) void frmContactEditor::AddBusinessIM( wxCommandEvent& event ) { + // Bring up the window for adding an IM address. + int intResult = 0; frmContactEditorIM *frameCEIM = new frmContactEditorIM ( this ); @@ -313,6 +333,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 +367,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,6 +393,8 @@ void frmContactEditor::DeleteBusinessIM( wxCommandEvent& event ) void frmContactEditor::AddBusinessTelephone( wxCommandEvent& event ) { + // Bring up the window for adding a telephone number. + int intResult = 0; frmContactEditorTelephone *frameCETel = new frmContactEditorTelephone ( this ); @@ -392,6 +418,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 +451,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,6 +476,8 @@ void frmContactEditor::DeleteBusinessTelephone( wxCommandEvent& event ) void frmContactEditor::AddBusinessLanguage( wxCommandEvent& event ) { + // Bring up the window for adding a language. + int intResult = 0; frmContactEditorLanguages *frameCELang = new frmContactEditorLanguages ( this ); @@ -468,6 +500,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 +532,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,6 +557,8 @@ void frmContactEditor::DeleteBusinessLanguage( wxCommandEvent& event ) void frmContactEditor::AddBusinessTimezone( wxCommandEvent& event ) { + // Bring up the window for adding a timezone. + int intResult = 0; frmContactEditorTimezones *frameCETZ = new frmContactEditorTimezones ( this ); @@ -544,6 +582,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 +615,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,6 +640,8 @@ void frmContactEditor::DeleteBusinessTimezone( wxCommandEvent& event ) void frmContactEditor::AddBusinessGeoposition( wxCommandEvent& event ) { + // Bring up the window for adding a geoposition location. + int intResult = 0; frmContactEditorGeoposition *frameCEGeo = new frmContactEditorGeoposition ( this ); @@ -622,6 +666,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 +700,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,6 +726,8 @@ void frmContactEditor::DeleteBusinessGeoposition( wxCommandEvent& event ) void frmContactEditor::AddBusinessWebsite( wxCommandEvent& event ) { + // Bring up the window for adding a website. + int intResult = 0; frmContactEditorWebsites *frameCEWeb = new frmContactEditorWebsites ( this ); @@ -701,6 +751,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 +784,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,6 +809,8 @@ void frmContactEditor::DeleteBusinessWebsite( wxCommandEvent& event ) void frmContactEditor::AddBusinessTitle( wxCommandEvent& event ) { + // Bring up the window for adding a title. + int intResult = 0; frmContactEditorTitles *frameCETitle = new frmContactEditorTitles ( this ); @@ -778,6 +834,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 +867,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,6 +892,8 @@ void frmContactEditor::DeleteBusinessTitle( wxCommandEvent& event ) void frmContactEditor::AddBusinessRole( wxCommandEvent& event ) { + // Bring up the window to add a role. + int intResult = 0; frmContactEditorRoles *frameCERole = new frmContactEditorRoles ( this ); @@ -855,6 +917,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 +950,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,6 +975,8 @@ void frmContactEditor::DeleteBusinessRole( wxCommandEvent& event ) void frmContactEditor::AddBusinessOrganisation( wxCommandEvent& event ) { + // Bring up the window to add an organisation. + int intResult = 0; frmContactEditorOrganisations *frameCEOrg = new frmContactEditorOrganisations ( this ); @@ -933,6 +1001,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 +1035,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,6 +1061,8 @@ void frmContactEditor::DeleteBusinessOrganisation( wxCommandEvent& event ) void frmContactEditor::AddBusinessNote( wxCommandEvent& event ) { + // Bring up the window to add a note. + int intResult = 0; frmContactEditorNotes *frameCENote = new frmContactEditorNotes ( this ); @@ -1012,6 +1086,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 +1119,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; -- 2.39.5